mypanel.h

来自「随着计算机信息技术的飞速发展」· C头文件 代码 · 共 44 行

H
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?