📄 mainfrm.h
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MAINFRM_H__5FFA951A_3AF3_4B40_BC06_9E2732CFA71F__INCLUDED_)
#define AFX_MAINFRM_H__5FFA951A_3AF3_4B40_BC06_9E2732CFA71F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define WM_USER_TRAY_NOTIFICATION (WM_USER+0x101)
#include "trayicon.h"
#include "BCMenu.h"
class CCisoCAView;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
protected:
CSplitterWnd m_wndSplitter;
public:
BCMenu m_menu;
HINSTANCE hinstance;
HWND (PASCAL *HtmlHelp)(HWND hwndCaller,
LPCSTR pszFile,
UINT uCommand,
DWORD dwData);
// Operations
public:
HMENU NewMenu();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
afx_msg LRESULT OnTrayNotification( WPARAM wparam, LPARAM lparam );
// Implementation
public:
virtual ~CMainFrame();
CCisoCAView* GetRightPane();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
public: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CTrayIcon m_trayIcon; // my tray icon
BOOL m_bShutdown; // OK to terminate app
BOOL m_bShowTrayNotifications; // display info in main window
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnCaInit();
afx_msg void OnCaMakecert();
afx_msg void OnCaMakecrl();
afx_msg void OnCaHelp();
afx_msg void OnSystemOption();
afx_msg void OnSystrayShow();
afx_msg void OnSystrayExit();
afx_msg void OnClose();
afx_msg void OnSystrayAbout();
afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
afx_msg void OnInitMenu(CMenu* pMenu);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
afx_msg LRESULT OnMenuChar(UINT nChar, UINT nFlags, CMenu* pMenu);
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnHelpSite();
//}}AFX_MSG
afx_msg void OnUpdateViewStyles(CCmdUI* pCmdUI);
afx_msg void OnViewStyle(UINT nCommandID);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRM_H__5FFA951A_3AF3_4B40_BC06_9E2732CFA71F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -