4 #include "OddButton.h"
\r
7 * \ingroup TortoiseProc
\r
8 * A CButton which can show icons and images with
\r
9 * the XP style. Normal CButtons only show the icons/images
\r
10 * themselves, without the XP style background.
\r
12 class CXPImageButton : public CButton
\r
14 DECLARE_DYNAMIC(CXPImageButton)
\r
18 virtual ~CXPImageButton();
\r
21 DECLARE_MESSAGE_MAP()
\r
23 afx_msg void OnNotifyCustomDraw ( NMHDR * pNotifyStruct, LRESULT* result );
\r
25 void DrawBitmap (HDC hDC, const CRect& Rect, DWORD style);
\r
26 void DrawIcon (HDC hDC, const CRect& Rect, DWORD style);
\r
27 int ImageLeft(int cx, const CRect& Rect, DWORD style) const;
\r
28 int ImageTop(int cy, const CRect& Rect, DWORD style) const;
\r
29 CXPTheme m_xpButton;
\r