mybutton.h
来自「一个多方面查询的系统,也是很辛苦找到,并且做管理系统很多方面都用到的」· C头文件 代码 · 共 43 行
H
43 行
// 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 + =
减小字号Ctrl + -
显示快捷键?