summaryrefslogtreecommitdiff
path: root/include/delphi/m_button.inc
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-01-15 21:04:05 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-01-15 21:04:05 +0000
commit45ed02f2c6064fa41d59c01f457565365d22ae59 (patch)
tree27740fbe37fb0d1b09751491ffa88547de12352e /include/delphi/m_button.inc
parentc1173e359c7c5ec3c173a0402716c2a53af607ef (diff)
sync
git-svn-id: http://svn.miranda-ng.org/main/trunk@7669 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/delphi/m_button.inc')
-rw-r--r--include/delphi/m_button.inc26
1 files changed, 17 insertions, 9 deletions
diff --git a/include/delphi/m_button.inc b/include/delphi/m_button.inc
index dd2c371e66..8ec2ada736 100644
--- a/include/delphi/m_button.inc
+++ b/include/delphi/m_button.inc
@@ -27,7 +27,7 @@ const
{
Sets whether a dropdown arrow is used
wParam = TRUE/FALSE turns arrow on or off
- lParam = not used
+ lParam = 0 (unused)
Usage: SendMessage(hwndbutton,BUTTONSETARROW,1,0);
Only works on MButtonClass buttons
}
@@ -36,7 +36,7 @@ const
{
Sets whether the button is a default button
wParam = TRUE/FALSE default on/off
- lParam = not used
+ lParam = 0 (unused)
Usage: SendMessage(hwndbutton,BUTTONSETDEFAULT,1,0);
Only works on MButtonClass buttons
}
@@ -45,7 +45,7 @@ const
{
Sets the button as a push button
wParam = 1/0 as on/off
- lParam = not used
+ lParam = 0 (unused)
Usage: SendMessage(hwndbutton,BUTTONSETASPUSHBTN,1,0);
Only works on MButtonClass buttons
}
@@ -54,7 +54,7 @@ const
{
Sets the button type as a flat button without borders v0.3.3+
wParam = 1/0 as on/off
- lParam = not used
+ lParam = 0 (unused)
Usage: SendMessage(hwndbutton,BUTTONSETASFLATBTN,1,0);
Only works on MButtonClass buttons
}
@@ -73,7 +73,7 @@ const
{
Sets the button type as a themed button
wParam = TRUE/FALSE default on/off
- lParam = not used
+ lParam = 0 (unused)
Usage: SendMessage(hwndbutton, BUTTONSETASTHEMEDBTN, 1, 0);
Only works on MButtonClass buttons
}
@@ -81,11 +81,19 @@ const
{
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
}
- BUTTONSETCUSTOM = WM_USER + 7;
+ BUTTONSETCUSTOMPAINT = WM_USER + 7;
+
+{
+ Forces a button to send clicks on push
+ wParam = TRUE/FALSE default on/off
+ lParam = 0 (unused)
+ Usage: SendMessage(hwndbutton, BUTTONSETSENDONDOWN, TRUE, 0);
+}
+ BUTTONSETSENDONDOWN = WM_USER + 8;
{$ENDIF}