⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mybutton.h

📁 随着计算机信息技术的飞速发展
💻 H
字号:
#pragma once

// CMyButton

#include <uxtheme.h>
#pragma comment(lib,"uxtheme.lib")

#include <shlwapi.h>
#pragma comment(lib,"shlwapi.lib")

class CMyButton : public CButton
{
	DECLARE_DYNAMIC(CMyButton)

public:
	CMyButton();
	CMyButton(HWND);
	virtual ~CMyButton();

protected:
	HTHEME m_hTheme;
	HWND m_hParent;
	BOOL m_bSelect;
	BOOL m_bFocus;
	BOOL m_bPaint;
	
protected:
	BOOL InitTrackEvent(HWND,DWORD);
	void DrawSelectState(UINT,int&);
	void DrawFocusState(UINT,int&);
	BOOL DrawButtonEdge(int);

protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);

public:
	afx_msg UINT OnNcHitTest(CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
};


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -