📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__A16CD85D_CB93_43ED_83B8_A819FEB4EB42__INCLUDED_)
#define AFX_MAINFRM_H__A16CD85D_CB93_43ED_83B8_A819FEB4EB42__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Operations
public:
void SaveFile();
const char * FileName;
int m_var;
CDC *m_memDC; // virtual window device con text
/* CBrush m_RedBrush, m_YellowBrush, m_GreenBrush, m_BlueBrush, m_BlackBrush;
CBrush m_OldBrush;
CBrush HollowBrush;
CBrush m_CustomBK;
CBrush m_PreviousBrush, m_CurrentBrush;
CPen m_RedPen, m_YellowPen, m_GreenPen, m_BluePen;
CPen m_OldPen, m_CustPen;
CPen m_CurrentPen;
CBitmap m_bmp; // virtual window bitmap
CBitmap m_undobmp; // virtual window bitmap
CBitmap m_redobmp; // virtual window bitmap
CBrush m_bkbrush; // brush for virtual window
CMyBitmap m_mybitmap;
*/
CPoint m_OldPoint,m_CurPoint;
CToolBar m_wndToolBar;
CToolBar m_wndBrushBar;
CToolBar m_wndPenFillBar;
CToolBar m_wndPenSizeBar;
CToolBar m_wndTools;
CStatusBar m_wndStatusBar;
CCeCommandBar m_wndCommandBar;
CReBar m_wndReBar;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
void InitToolBARS();
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnHelpInfo(HELPINFO* pHelpInfo);
afx_msg void OnHelp();
afx_msg void OnFileSaveAs();
afx_msg void OnFileSave();
afx_msg void OnFileNew();
afx_msg void OnFileMruFile1();
afx_msg void OnFileExit();
afx_msg void OnEditUndo();
afx_msg void OnEditRedo();
afx_msg void OnEditPaste();
afx_msg void OnEditCut();
afx_msg void OnEditCopy();
afx_msg void OnColorbox();
afx_msg void OnAppExit();
afx_msg void OnAppAbout();
afx_msg void OnUpdateToolKits(CCmdUI* pCmdUI);
afx_msg void OnText();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__A16CD85D_CB93_43ED_83B8_A819FEB4EB42__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -