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

📄 mybutton.h

📁 一个多方面查询的系统,也是很辛苦找到,并且做管理系统很多方面都用到的
💻 H
字号:
// MyButton.h: interface for the CMyButton class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_MYBUTTON_H__AD9E502D_A9AB_4438_8653_69951367B476__INCLUDED_)
#define AFX_MYBUTTON_H__AD9E502D_A9AB_4438_8653_69951367B476__INCLUDED_

#include "MyLabel.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CMyButton : public CWnd  
{
	DECLARE_DYNCREATE(CMyButton);
public:
	CRect leftRc,midRc,rightRc;
	COLORREF crBackground1;
	CRect ButtonRect;
	CMyLabel *OKButton,*CancelButton,*UpButton,*DownButton;
	int iFlag;
	CWnd *pParentWnd;
	CMyLabel *TitleLabel;
	COLORREF crBackground0;
	int Create(DWORD dwStyle, const RECT &rect, CWnd *pParentWnd, UINT nID,int flag);  //flag==0为左边下拉按钮,1为右边确定按钮
	CMyButton();
	virtual ~CMyButton();


protected:
	//{{AFX_MSG(CPage1
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG
    DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_MYBUTTON_H__AD9E502D_A9AB_4438_8653_69951367B476__INCLUDED_)

⌨️ 快捷键说明

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