inbutton.h

来自「C++编程实践与技巧一书各章节的源码」· C头文件 代码 · 共 59 行

H
59
字号

#if !defined(AFX_HIBUTTON_H__44AF4523_1247_11D2_863B_0040055C08D9__INCLUDED_) 

#define AFX_HIBUTTON_H__44AF4523_1247_11D2_863B_0040055C08D9__INCLUDED_ 

#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 

///////////////////////////////////////////////////////////////////////////// 

// CDouButton window 

class CDouButton : public CButton 
{ 
// Construction 
public: 
 CDouButton(); 
 BOOL m_bInsideButton; //是否内部按钮标识
 HBITMAP SetBitmap( HBITMAP hBitmap ); //设置位图
 HICON SetIcon( HICON hIcon ); //设置图标
 HCURSOR SetCursor( HCURSOR hCursor ); //设置光标
// Attributes 
public: 

// Operations 
public: 

// Overrides 
 // ClassWizard generated virtual function overrides 
 //{{AFX_VIRTUAL(CDouButton) 
 protected: 
 virtual void PreSubclassWindow(); 
 virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam); 
 //}}AFX_VIRTUAL 

// Implementation 
public: 
 virtual ~CDouButton(); 

 // Generated message map functions 
protected: 
 //{{AFX_MSG(CDouButton) 
 // NOTE - the ClassWizard will add and remove member functions here. 
 //}}AFX_MSG 

 DECLARE_MESSAGE_MAP() 
private: 
 CButton m_wndButtonInside; 
}; 

///////////////////////////////////////////////////////////////////////////// 

//{{AFX_INSERT_LOCATION}} 
// Microsoft Developer Studio will insert additional declarations 

#endif // !defined(AFX_HIBUTTON_H__44AF4523_1247_11D2_863B_0040055C08D9__INCLUDED_) 

⌨️ 快捷键说明

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