custbutton.h
来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 63 行
H
63 行
#if !defined(AFX_CUSTBUTTON_H__125D1AE2_CFA2_4580_9051_FBE4FD6AF823__INCLUDED_)
#define AFX_CUSTBUTTON_H__125D1AE2_CFA2_4580_9051_FBE4FD6AF823__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CustButton.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCustButton window
class CCustButton : public CButton
{
LPCTSTR m_szpData;
CFont* m_pCurFont;
int m_nSize;
LPCTSTR m_szpFont;
// Construction
public:
CCustButton();
COLORREF m_nBkgrnd;
COLORREF m_nFrgrnd;
// Attributes
public:
// Operations
public:
void UpdateView(COLORREF bk,COLORREF fr,LPCTSTR szpFont,int nSize);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCustButton)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
virtual void PreSubclassWindow();
//}}AFX_VIRTUAL
// Implementation
public:
void UpdateFrgrnd(COLORREF nfrGrnd);
void UpdateBkgrnd(COLORREF nbkGrnd);
void UpdateBoth(COLORREF nfrGrnd,COLORREF nbkGrnd);
void UpdateSize(int nSize);
void UpdateFont(LPCTSTR szpFont);
virtual ~CCustButton();
// Generated message map functions
protected:
//{{AFX_MSG(CCustButton)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CUSTBUTTON_H__125D1AE2_CFA2_4580_9051_FBE4FD6AF823__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?