diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-15 11:44:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-15 11:44:40 +0000 |
commit | f92563fa59cd21d339f98288c60b81a51109fa01 (patch) | |
tree | 3f5831465380a967f0c79d9819a41422b7b2c59c /include | |
parent | 8e10b13b38995be8e810342d21040a4324cbfeef (diff) |
same clutch removed for MButtonCtrl, mir_subclassWindow won again
git-svn-id: http://svn.miranda-ng.org/main/trunk@5360 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/m_button.h | 8 | ||||
-rw-r--r-- | include/m_button_int.h | 9 |
2 files changed, 4 insertions, 13 deletions
diff --git a/include/m_button.h b/include/m_button.h index d883143793..c3b0dfabd7 100644 --- a/include/m_button.h +++ b/include/m_button.h @@ -77,10 +77,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define BUTTONSETASTHEMEDBTN (WM_USER+6)
// Sets the custom painting procedure for a button
-// wParam = not used
-// lParam = MButtonCustomize* (refer to mbutton_int.h for details)
-// Usage: SendMessage(hwndbutton, BUTTONSETCUSTOM, 0, (LPARAM)&CustomData);
+// wParam = new data block length (inherited from MButtonCtrl)
+// lParam = (pfnPainterFunc)pfnPainter (refer to mbutton_int.h for details)
+// Usage: SendMessage(hwndbutton, BUTTONSETCUSTOM, 0, (LPARAM)MyPainter);
// Only works on MButtonClass buttons
-#define BUTTONSETCUSTOM (WM_USER+7)
+#define BUTTONSETCUSTOMPAINT (WM_USER+7)
#endif // M_BUTTON_H__
diff --git a/include/m_button_int.h b/include/m_button_int.h index 08004b5cb6..a118c3d33b 100644 --- a/include/m_button_int.h +++ b/include/m_button_int.h @@ -51,8 +51,6 @@ struct MButtonCtrl bIsThemed, // themed button
bIsSkinned; // skinned button
- LRESULT lResult; // custom window proc result
- WNDPROC fnWindowProc; // custom window proc
pfnPainterFunc fnPainter; // custom button painter
IAccPropServices* pAccPropServices;
@@ -62,11 +60,4 @@ struct MButtonCtrl typedef void (__cdecl *pfnPainterFunc)(MButtonCtrl*, HDC);
-struct MButtonCustomize
-{
- size_t cbLen; // total length of the internal data structure
- WNDPROC fnWindowProc; // subclassed windows procedure for the custom button
- pfnPainterFunc fnPainter; // custom button painter
-};
-
#endif // M_BUTTON_INT_H__
|