?? xbtnst.h
字號:
#if !defined(AFX_BTNST_H__CD30726F_8441_12D1_8E53_9E80D52A2535__INCLUDED_)
#define AFX_BTNST_H__CD30726F_8441_12D1_8E53_9E80D52A2535__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// XBtnST.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// XButton window
class XButton : public CButton
{
// Construction
public:
XButton();
enum {ST_ALIGN_HORIZ, ST_ALIGN_VERT};
void ReSet();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(XButton)
//}}AFX_VIRTUAL
// Implementation
public:
int GetAlign();
void SetAlign(int nAlign);
void DrawBorder(BOOL bEnable = TRUE);
BOOL GetFlat();
void SetFlat(BOOL bState = TRUE);
static const short GetVersionI();
static const char* GetVersionC();
BOOL SubclassDlgItem( UINT nID, CWnd* pParent );
void SetIcon(int nIconId, BYTE cx = 32, BYTE cy = 32);
void SetMouseOnColor(COLORREF r);
void SetPressColor(COLORREF r);
// Generated message map functions
protected:
void OnKillFocus( CWnd* pNewWnd );
void OnMouseMove(UINT nFlags, CPoint point);
virtual void DrawItem( LPDRAWITEMSTRUCT lpDIS);
//{{AFX_MSG(XButton)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DrawTheIcon(CDC* pDC, CString* title, RECT* rcItem, CRect* captionRect, BOOL IsPressed, BOOL IsDisabled);
int m_nAlign;
BOOL m_bDrawBorder;
BOOL m_bIsFlat;
BOOL m_MouseOnButton;
COLORREF mouse_on_color,press_color;
HICON m_hIcon;
BYTE m_cyIcon;
BYTE m_cxIcon;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_BTNST_H__CD30726F_8441_11D1_8E53_9E80D52A2535__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -