Author Topic: (Phoenix) Splitterbar Messages  (Read 3844 times)

0 Members and 1 Guest are viewing this topic.

Offline Theo Gottwald

  • Administrator
  • Hero Member
  • *****
  • Posts: 929
  • User-Rate: +30/-4
    • it-berater
(Phoenix) Splitterbar Messages
« on: May 19, 2007, 03:37:39 PM »
Code: [Select]
' Splitterbar control styles
%SBSTYLE_VERTICAL       = &H01??  ' creates a vertical Splitterbar
%SBSTYLE_HORIZONTAL     = &H02??  ' creates a horizontal Splitterbar
%SBSTYLE_RAISED         = &H10??  ' creates a Splitterbar with raised edges
%SBSTYLE_NOHOVERCURSOR  = &H20??  ' the splitterbar uses only one cursor instead of two. The default is a hover cursor and a drag cursor

' Splitterbar control messages
%SBARM_SETBKCOLOR     = %WM_USER + 1
' Purpose: sets the background color of a Splitterbar control.
' wParam:  N/A
' lParam:  new background color or -1 for no color.
' Return:  value of previous background color or %COLOR_BTNFACE for default.

%SBARM_GETBKCOLOR     = %WM_USER + 2
' Purpose: gets the background color of a Splitterbar control.
' wParam:  N/A
' lParam:  N/A
' Return:  value of background color or -1 for no color.

%SBARM_SETCURSOR      = %WM_USER + 3
' Purpose: sets the mouse pointer used by a Splitterbar control.
' wParam:  N/A
' lParam:  handle of new cursor.
' Return:  handle of previous cursor.

%SBARM_GETCURSOR      = %WM_USER + 4
' Purpose: gets the mouse pointer used by a Splitterbar control.
' wParam:  N/A
' lParam:  N/A
' Return:  handle of cursor used by control.

%SBARM_SETOFFSETS     = %WM_USER + 5
' Purpose: sets the width(height) of the margin beyond which a splitterbar can be dragged.
' wParam:  N/A
' lParam:  LOWRD = left margin(vertical splitter).  Top margin(horizontal splitterbar).
'          HIWRD = right margin(vertical splitter).  Bottom margin(horizontal splitterbar).
' Return:  previous margins or the defaults(2 pixels).

%SBARM_GETOFFSETS     = %WM_USER + 6
' Purpose: gets the width(height) of the margin beyond which a splitterbar can be dragged.
' wParam:  N/A
' lParam:  N/A
' Return:  the left(top) margin in the loword, the right(bottom) margin in the hiword.

' Splitterbar control notifications sent via WM_COMMAND.
%SBARN_POSCHANGED     = %WM_USER + 1
' Purpose: sent when the position of the splitterbar changes.
' wParam:  LOWRD = control identifier.  HIWRD = notification code
' lParam:  handle of control
' Return:  N/A

%SBARN_DBLCLK         = %WM_USER + 2
' Purpose: sent when the splitterbar is double-clicked.
' wParam:  LOWRD = control identifier.  HIWRD = notification code
' lParam:  handle of control
' Return:  N/A     
« Last Edit: August 04, 2007, 07:10:08 PM by Theo Gottwald »