summaryrefslogtreecommitdiff
path: root/include/m_button.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-21 18:03:23 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-21 18:03:23 +0000
commit798a7bc2ee5f488d67831c11778f209bdadcba02 (patch)
tree7110885daa35701e74363b03064534fd70f317af /include/m_button.h
parentb6eeba0ad88a0eef9218e95cd07ef3cd867ff431 (diff)
patch for the core Mbutton class customization, to use the themes defined by plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@514 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_button.h')
-rw-r--r--include/m_button.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/m_button.h b/include/m_button.h
index 3de4acb033..d883143793 100644
--- a/include/m_button.h
+++ b/include/m_button.h
@@ -69,11 +69,18 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define BUTTONADDTOOLTIP (WM_USER+5)
-// Sets the button type as a themed button without borders
+// Applies themes to a button
// wParam = TRUE/FALSE default on/off
// lParam = not used
// Usage: SendMessage(hwndbutton, BUTTONSETASTHEMEDBTN, 1, 0);
// Only works on MButtonClass buttons
#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);
+// Only works on MButtonClass buttons
+#define BUTTONSETCUSTOM (WM_USER+7)
+
#endif // M_BUTTON_H__