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

📄 xbtnst.h

📁 CT工作站具有打印报告、病历管理、图像处理专家词库等功能
💻 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 + -