📄 mainfrm.h
字号:
// Written by JHCC
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
#include "JHHBSplitter.h"
#include "MyStatusBar.h"
//extern int nServerOrClient ;
class CMainFrame : public CFrameWnd
{
protected: // create from serialization only
CMainFrame();
DECLARE_DYNCREATE(CMainFrame)
// Attributes
public:
// for display the current time at the StatusBar
UINT m_nIDTimer;
static void CALLBACK TimerProc(HWND hwnd,
UINT uMsg, UINT uIDEvent, DWORD dwTime);
void RefreshStatusBar()
{
m_wndStatusBar.RedrawWindow();
}
private:
UINT m_nStatusPane1ID;
UINT m_nStatusPane1Style;
INT m_nStatusPane1Width;
BOOL m_bMenuSelect;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
public:
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CMyStatusBar m_wndStatusBar;
CString m_strTimePaneFmt;
CString m_strDatePaneFmt;
public:
CJHHBSplitter m_wndSplitter;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnNcLButtonDblClk(UINT nHitTest, CPoint point);
afx_msg void OnMenuSelect(UINT nItemID, UINT nFlags, HMENU hSysMenu);
afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);
afx_msg void OnDataRelayReal();
//}}AFX_MSG
afx_msg void OnUpdateTime(CCmdUI* pCmdUI);
afx_msg void OnUpdateDate(CCmdUI* pCmdUI); // add by SQJ
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -