////////////////////////////////////////////////////////////////////////// // CDockDialog中创建的主窗口, 里面创建CListView和CoolBar1(文件列表) // 创建人: 周风生 ////////////////////////////////////////////////////////////////////////// #if !defined(AFX_MAINFRAME_H__DB4FC4FE_4B0E_49B4_A5E2_542806643835__INCLUDED_) #define AFX_MAINFRAME_H__DB4FC4FE_4B0E_49B4_A5E2_542806643835__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #include "shsCoolBar1.h" class CMainFrame : public CFrameWnd { public: CMainFrame(); DECLARE_DYNCREATE(CMainFrame) public: public: //{{AFX_VIRTUAL(CMainFrame) public: virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL protected: virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); //}}AFX_MSG DECLARE_MESSAGE_MAP() public: // 显示文件列表 void ShowListDock(); BOOL IsShowListDock(); // 显示文件预缆 void ShowPreViewCtrl(); BOOL IsShowPreViewCtrl(); // 显示文件说明 void ShowExplainCtrl(); BOOL IsShowExplainCtrl(); void hidePreViewCtrlAndExplainCtrl(); public: CSplitterWnd m_wndSplitter; CHYCoolBar1 m_wndMyDialogBar; }; #endif