- // MainFrm.h : interface of the CMainFrame class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MAINFRM_H__1E0F37E7_4020_11D1_9FB1_444553540000__INCLUDED_)
- #define AFX_MAINFRM_H__1E0F37E7_4020_11D1_9FB1_444553540000__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // in a "real" application you should move these 2 headers to "stdafx.h"
- #include "ToolBarEx.h"
- class CDemoPage;
- class CMainFrame : public CMDIFrameWnd
- {
- DECLARE_DYNAMIC(CMainFrame)
- public:
- CMainFrame();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMainFrame)
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CMainFrame();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected: // control bar embedded members
- CStatusBar m_wndStatusBar;
- CToolBarEx m_wndToolBar;
- CToolBarEx m_wndTextBar;
- CComboBox m_wndBox; // place a control on a CToolBarEx
- // Generated message map functions
- protected:
- //{{AFX_MSG(CMainFrame)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnUpdateViewFlatbar(CCmdUI* pCmdUI);
- afx_msg void OnViewFlatbar();
- afx_msg void OnUpdateToggleCase(CCmdUI* pCmdUI);
- afx_msg void OnToggleCase();
- afx_msg void OnUpdateButton(CCmdUI* pCmdUI);
- afx_msg void OnClose();
- //}}AFX_MSG
- #if _MFC_VER >= 0x0420
- afx_msg void OnCustomToolbarDraw( NMHDR *, LRESULT * );
- #endif
- afx_msg void OnQueryDelete( NMHDR *, LRESULT * );
- afx_msg void OnQueryInsert( NMHDR *, LRESULT * );
- DECLARE_MESSAGE_MAP()
- private:
- BOOL m_bCaseCheck;
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // CText window
- class CText : public CStatic
- {
- DECLARE_DYNCREATE(CText);
- // Construction
- public:
- CText();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CText)
- public:
- virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
- protected:
- virtual void PostNcDestroy();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CText();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CText)
- // NOTE - the ClassWizard will add and remove member functions here.
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINFRM_H__1E0F37E7_4020_11D1_9FB1_444553540000__INCLUDED_)