OSDN Git Service

Show Ignore Sub Menu
[tortoisegit/TortoiseGitJp.git] / Utils / MiscUI / XPImageButton.h
1 #pragma once\r
2 \r
3 #include "XPTheme.h"\r
4 #include "OddButton.h"\r
5 \r
6 /**\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
11  */\r
12 class CXPImageButton : public CButton\r
13 {\r
14         DECLARE_DYNAMIC(CXPImageButton)\r
15 \r
16 public:\r
17         CXPImageButton();\r
18         virtual ~CXPImageButton();\r
19 \r
20 protected:\r
21         DECLARE_MESSAGE_MAP()\r
22 \r
23         afx_msg void OnNotifyCustomDraw ( NMHDR * pNotifyStruct, LRESULT* result );\r
24 \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
30 };\r
31 \r