扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
作者:曹勇刚 来源:yesky 2007年11月16日
关键字:
class CMainFrame : public CMDIFrameWnd { DECLARE_DYNAMIC(CMainFrame)//支持动态建立 public: CMainFrame(); // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); //}}AFX_VIRTUAL // Implementation public: int m_Depth;//立体深度 COLORREF m_fillcolor;//填充色 COLORREF m_pencolor;//边框色 LOGFONT m_font;//字体 int m_penstyle;//线型 UINT m_penwidth;//笔宽 void SaveToReg();//记录退出前的窗口状态 void ReadFromReg();//读取退出前的窗口状态 objecttype GetDrawType();//返回当前选中的绘图工具类别 virtual ~CMainFrame(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // control bar embedded members CStatusBar m_wndStatusBar;//状态栏 CReBar m_wndReBar;//标准栏和属性栏的容器工具条 CDialogBar m_wndDlgBar;//属性栏 CToolBar m_wndToolBar;//标准栏 CToolBar m_wndDrawTool;//绘图工具条 UINT objtype;//选中工具的ID号 // Generated message map functions protected: afx_msg void OnDropDown(NMHDR* pNotifyStruct,LRESULT* result); //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnShowdrawtool();//显隐工具条 afx_msg void OnUpdateShowdrawtool(CCmdUI* pCmdUI); afx_msg void OnFont(); afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized); afx_msg void OnColor(); afx_msg void OnUpdateColor(CCmdUI* pCmdUI); afx_msg void OnFillcolor(); afx_msg void OnUpdateFillcolor(CCmdUI* pCmdUI); //}}AFX_MSG afx_msg void OnSelectTool(UINT ID);//选中工具 afx_msg void OnUpdateButtons(CCmdUI* pCmdUI);//处理按钮按下状态 afx_msg void onchangedpenwidth(); DECLARE_MESSAGE_MAP() }; |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。
现场直击|2021世界人工智能大会
直击5G创新地带,就在2021MWC上海
5G已至 转型当时——服务提供商如何把握转型的绝佳时机
寻找自己的Flag
华为开发者大会2020(Cloud)- 科技行者