summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/m_button.h8
-rw-r--r--include/m_button_int.h9
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__