Typy Publiczne |
enum | { ST_ALIGN_HORIZ = 0,
ST_ALIGN_VERT,
ST_ALIGN_HORIZ_RIGHT,
ST_ALIGN_OVERLAP
} |
enum | {
BTNST_COLOR_BK_IN = 0,
BTNST_COLOR_FG_IN,
BTNST_COLOR_BK_OUT,
BTNST_COLOR_FG_OUT,
BTNST_COLOR_BK_FOCUS,
BTNST_COLOR_FG_FOCUS,
BTNST_MAX_COLORS
} |
enum | { BTNST_PRESSED_LEFTRIGHT = 0,
BTNST_PRESSED_TOPBOTTOM
} |
Metody Publiczne |
| CButtonST () |
| ~CButtonST () |
virtual void | DrawItem (LPDRAWITEMSTRUCT lpDrawItemStruct) |
virtual BOOL | PreTranslateMessage (MSG *pMsg) |
DWORD | SetDefaultColors (BOOL bRepaint=TRUE) |
DWORD | SetColor (BYTE byColorIndex, COLORREF crColor, BOOL bRepaint=TRUE) |
DWORD | GetColor (BYTE byColorIndex, COLORREF *crpColor) |
DWORD | OffsetColor (BYTE byColorIndex, short shOffset, BOOL bRepaint=TRUE) |
DWORD | SetCheck (int nCheck, BOOL bRepaint=TRUE) |
int | GetCheck () |
DWORD | SetURL (LPCTSTR lpszURL=NULL) |
void | DrawTransparent (BOOL bRepaint=FALSE) |
DWORD | SetBk (CDC *pDC) |
BOOL | GetDefault () |
DWORD | SetAlwaysTrack (BOOL bAlwaysTrack=TRUE) |
void | SetTooltipText (int nText, BOOL bActivate=TRUE) |
void | SetTooltipText (LPCTSTR lpszText, BOOL bActivate=TRUE) |
void | ActivateTooltip (BOOL bEnable=TRUE) |
DWORD | EnableBalloonTooltip () |
DWORD | SetBtnCursor (int nCursorId=NULL, BOOL bRepaint=TRUE) |
DWORD | SetFlat (BOOL bFlat=TRUE, BOOL bRepaint=TRUE) |
DWORD | SetAlign (BYTE byAlign, BOOL bRepaint=TRUE) |
DWORD | SetPressedStyle (BYTE byStyle, BOOL bRepaint=TRUE) |
DWORD | DrawBorder (BOOL bDrawBorder=TRUE, BOOL bRepaint=TRUE) |
DWORD | DrawFlatFocus (BOOL bDrawFlatFocus, BOOL bRepaint=TRUE) |
DWORD | SetIcon (int nIconIn, int nIconOut=NULL) |
DWORD | SetIcon (HICON hIconIn, HICON hIconOut=NULL) |
DWORD | SetBitmaps (int nBitmapIn, COLORREF crTransColorIn, int nBitmapOut=NULL, COLORREF crTransColorOut=0) |
DWORD | SetBitmaps (HBITMAP hBitmapIn, COLORREF crTransColorIn, HBITMAP hBitmapOut=NULL, COLORREF crTransColorOut=0) |
void | SizeToContent () |
DWORD | SetMenu (UINT nMenu, HWND hParentWnd, BOOL bRepaint=TRUE) |
DWORD | SetMenuCallback (HWND hWnd, UINT nMessage, LPARAM lParam=0) |
DWORD | SetSound (LPCTSTR lpszSound, HMODULE hMod=NULL, BOOL bPlayOnClick=FALSE, BOOL bPlayAsync=TRUE) |
Statyczne Metody Publiczne |
short | GetVersionI () |
LPCTSTR | GetVersionC () |
Atrybuty Publiczne |
BOOL | m_bShowDisabledBitmap |
POINT | m_ptImageOrg |
POINT | m_ptPressedOffset |
Metody Chronione |
virtual void | PreSubclassWindow () |
afx_msg BOOL | OnSetCursor (CWnd *pWnd, UINT nHitTest, UINT message) |
afx_msg void | OnKillFocus (CWnd *pNewWnd) |
afx_msg void | OnMouseMove (UINT nFlags, CPoint point) |
afx_msg void | OnSysColorChange () |
afx_msg BOOL | OnClicked () |
afx_msg void | OnActivate (UINT nState, CWnd *pWndOther, BOOL bMinimized) |
afx_msg void | OnEnable (BOOL bEnable) |
afx_msg void | OnCancelMode () |
afx_msg UINT | OnGetDlgCode () |
afx_msg HBRUSH | CtlColor (CDC *pDC, UINT nCtlColor) |
HICON | CreateGrayscaleIcon (HICON hIcon) |
virtual DWORD | OnDrawBackground (CDC *pDC, CRect *pRect) |
virtual DWORD | OnDrawBorder (CDC *pDC, CRect *pRect) |
Atrybuty Chronione |
BOOL | m_bIsFlat |
BOOL | m_bMouseOnButton |
BOOL | m_bDrawTransparent |
BOOL | m_bIsPressed |
BOOL | m_bIsFocused |
BOOL | m_bIsDisabled |
BOOL | m_bIsDefault |
BOOL | m_bIsCheckBox |
BYTE | m_byAlign |
BOOL | m_bDrawBorder |
BOOL | m_bDrawFlatFocus |
COLORREF | m_crColors [BTNST_MAX_COLORS] |
HWND | m_hParentWndMenu |
BOOL | m_bMenuDisplayed |
HMENU | m_hMenu |
Typy Prywatne |
typedef CButtonST::_STRUCT_ICONS | STRUCT_ICONS |
typedef CButtonST::_STRUCT_BITMAPS | STRUCT_BITMAPS |
typedef CButtonST::_STRUCT_CALLBACK | STRUCT_CALLBACK |
typedef CButtonST::_STRUCT_SOUND | STRUCT_SOUND |
Metody Prywatne |
LRESULT | OnSetCheck (WPARAM wParam, LPARAM lParam) |
LRESULT | OnGetCheck (WPARAM wParam, LPARAM lParam) |
LRESULT | OnSetStyle (WPARAM wParam, LPARAM lParam) |
LRESULT | OnMouseLeave (WPARAM wParam, LPARAM lParam) |
void | CancelHover () |
void | FreeResources (BOOL bCheckForNULL=TRUE) |
void | PrepareImageRect (BOOL bHasTitle, RECT *rpItem, CRect *rpTitle, BOOL bIsPressed, DWORD dwWidth, DWORD dwHeight, CRect *rpImage) |
HBITMAP | CreateBitmapMask (HBITMAP hSourceBitmap, DWORD dwWidth, DWORD dwHeight, COLORREF crTransColor) |
virtual void | DrawTheIcon (CDC *pDC, BOOL bHasTitle, RECT *rpItem, CRect *rpCaption, BOOL bIsPressed, BOOL bIsDisabled) |
virtual void | DrawTheBitmap (CDC *pDC, BOOL bHasTitle, RECT *rpItem, CRect *rpCaption, BOOL bIsPressed, BOOL bIsDisabled) |
virtual void | DrawTheText (CDC *pDC, LPCTSTR lpszText, RECT *rpItem, CRect *rpCaption, BOOL bIsPressed, BOOL bIsDisabled) |
void | PaintBk (CDC *pDC) |
void | InitToolTip () |
Atrybuty Prywatne |
HCURSOR | m_hCursor |
CToolTipCtrl | m_ToolTip |
CDC | m_dcBk |
CBitmap | m_bmpBk |
CBitmap * | m_pbmpOldBk |
BOOL | m_bAlwaysTrack |
int | m_nCheck |
UINT | m_nTypeStyle |
DWORD | m_dwToolTipStyle |
TCHAR | m_szURL [_MAX_PATH] |
STRUCT_ICONS | m_csIcons [2] |
STRUCT_BITMAPS | m_csBitmaps [2] |
STRUCT_CALLBACK | m_csCallbacks |
STRUCT_SOUND | m_csSounds [2] |