MainFrm.h
上传用户:qhonly
上传日期:2013-06-10
资源大小:487k
文件大小:2k
- // MainFrm.h : CMainFrame 类的接口
- //
- #pragma once
- #include "RTFrameWnd.h"
- #include "RTSkin.h"
- #include "RTMenu.h"
- #include "RTSplitterWnd.h"
- #include "RTToolBar.h"
- #include "RTStatusBar.h"
- #include "RTXmlFile.h"
- #include "LeftForm.h"
- #include "RightForm.h"
- class CMainFrame : public CRTFrameWnd
- {
-
- public:
- CMainFrame();
- protected:
- CRTSkin m_Skin;
- DECLARE_DYNAMIC(CMainFrame)
- // 属性
- public:
- // 操作
- public:
- // 重写
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- // 实现
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // 控件条嵌入成员
- CRTStatusBar m_wndStatusBar;
- CRTToolBar m_ToolBarFileDown;
- CRTToolBar m_ToolBarWebDown;
- CRTToolBar m_ToolBarWebMgr;
- CRTSplitterWnd m_Splitter;
- CLeftForm m_LeftForm;
- CRightForm m_RightForm;
- CRTXmlFile m_SkinFile;
- HCURSOR m_hVerCursor;
- HCURSOR m_hHorCursor;
- BOOL EnableSkin;
- BOOL EnableSDITitleBar;
- BOOL EnableSDIBorder;
- BOOL EnableDLGTitleBar;
- BOOL EnableDLGBorder;
- BOOL EnableDlgBack;
- BOOL EnableMenuBar;
- char SkinFile[MAX_PATH];
- // 生成的消息映射函数
- protected:
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnSetFocus(CWnd *pOldWnd);
- afx_msg void OnTabTaskMgrSelChange(NMHDR *pNMHDR, LRESULT *pResult);
- afx_msg LRESULT OnSelectedSkin(WPARAM wParam,LPARAM lParam);
- afx_msg LRESULT OnEnableSkin(WPARAM wParam,LPARAM lParam);
- DECLARE_MESSAGE_MAP()
- //DECLARE_MENUXP()
- public:
- void UseSkin(BOOL IsEnable);
- virtual BOOL LoadFrame(UINT nIDResource, DWORD dwDefaultStyle = WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, CWnd* pParentWnd = NULL, CCreateContext* pContext = NULL);
- protected:
- virtual void OnUpdateFrameMenu(HMENU hMenuAlt);
- virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
- public:
- afx_msg void OnShowSelectSkinDlg();
- void LoadSkin(void);
- void SaveSkin(void);
- };