📄 mypanel.h
字号:
#pragma once
// CMyPanel
#define WM_COLLAPSEPANELS WM_USER+0x1001
#define WM_EXPANDPANELS WM_USER+0x1002
#define WM_SCALEFINISH WM_USER+0x1003
#include "mystatic.h"
#include "mybutton.h"
class CMyPanel : public CWnd
{
DECLARE_DYNAMIC(CMyPanel)
public:
CMyPanel();
virtual ~CMyPanel();
CMyPanel(HWND,LPCTSTR tip[],int);
protected:
CMyStatic* m_pStatic[16];
int m_State,m_ItemCount;
int m_Width,m_Height;
CButton* m_pButton;
LPCTSTR* m_Tip;
HWND m_hParent;
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnTimer(UINT nIDEvent);
protected:
virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
public:
afx_msg void OnDestroy();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -