- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__F714E2DF_477E_45FB_99F4_0BF9B1494D80__INCLUDED_)
- #define AFX_MAINFRM_H__F714E2DF_477E_45FB_99F4_0BF9B1494D80__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "LogCtrl.h"
- class CMainFrame : public CExtNCW < CMDIFrameWnd >
- {
- DECLARE_DYNAMIC(CMainFrame)
- public:
- CMainFrame();
- #ifndef __EXT_MFC_NO_MDI_WINDOWS_LIST_DIALOG
- class CMyMdiWindowsListDlg : public CExtMdiWindowsListDlg
- {
- public:
- CMyMdiWindowsListDlg(
- CMDIFrameWnd * pMDIFrameWnd,
- CWnd * pParent = NULL
- )
- : CExtMdiWindowsListDlg(
- pMDIFrameWnd,
- pParent
- )
- {
- }
- CMyMdiWindowsListDlg(
- HWND hMDIFrameWnd,
- CWnd * pParent = NULL
- )
- : CExtMdiWindowsListDlg(
- hMDIFrameWnd,
- pParent
- )
- {
- }
- protected:
- virtual void OnUpdateButtons()
- {
- CExtMdiWindowsListDlg::OnUpdateButtons();
- m_btnSave.ShowWindow(SW_HIDE);
- }
- }; // class CMyMdiWindowsListDlg : public CExtMdiWindowsListDlg
- #endif // #ifndef __EXT_MFC_NO_MDI_WINDOWS_LIST_DIALOG
- // Attributes
- public:
- private:
- // window placement persistence
- WINDOWPLACEMENT m_dataFrameWP;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- virtual BOOL DestroyWindow();
- virtual void ActivateFrame(int nCmdShow = -1);
- virtual BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CExtStatusControlBar m_wndStatusBar;
- public: // for child frame
- CExtMenuControlBar m_wndMenuBar;
- protected:
- CExtToolControlBar m_wndToolBar;
- CExtToolControlBar m_wndToolBar1;
- CExtThemeSwitcherToolControlBar m_wndToolBarUiLook;
- CExtControlBar m_wndResizableBar0;
- CExtControlBar m_wndResizableBar1;
- CExtControlBar m_wndResizableBar2;
- CExtControlBar m_wndResizableBar3;
- CExtControlBar m_wndResizableBar4;
- CExtControlBar m_wndResizableBar5;
- CLogCtrl m_wndLogCtrl0;
- CLogCtrl m_wndLogCtrl1;
- CLogCtrl m_wndLogCtrl2;
- CLogCtrl m_wndLogCtrl3;
- CLogCtrl m_wndLogCtrl4;
- CLogCtrl m_wndLogCtrl5;
- CDemoEventSourceThread m_DemoThread0;
- CDemoEventSourceThread m_DemoThread1;
- CDemoEventSourceThread m_DemoThread2;
- CDemoEventSourceThread m_DemoThread3;
- CDemoEventSourceThread m_DemoThread4;
- CDemoEventSourceThread m_DemoThread5;
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- afx_msg LRESULT OnExtMenuPrepare(WPARAM wParam, LPARAM lParam);
- afx_msg void OnUpdateControlBarMenu(CCmdUI* pCmdUI);
- afx_msg BOOL OnBarCheck(UINT nID);
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__F714E2DF_477E_45FB_99F4_0BF9B1494D80__INCLUDED_)