Splitpane style

wSplitStyle
This macro returns the specific style of a WC_SPLITPANE (i.e. it does not take into account the WS_* standard window styles).
Syntax:
ULONG wSplitStyle(HWND hwnd);
Parameters:
HWND hwnd:splitpane window handle.
Return value:
ULONG:a combination of splitpane specific styles (excluding the WS_* flags).
Example:
ULONG style; style = wSplitStyle(hwndSplitPane); // check if the current splitter orientation is horizontal if (style & SPLITS_ROWS) ...

dSplitStyle
This macro returns the specific style of a WC_SPLITPANE (i.e. it does not take into account the WS_* standard window styles).
Syntax:
ULONG dSplitStyle(HWND hwndDlg, ULONG id);
Parameters:
HWND hwndDlg:dialog window handle.
ULONG id:splitpane window ID.
Return value:
ULONG:a combination of splitpane specific styles (excluding the WS_* flags).
Example:
ULONG style; style = dSplitStyle(hwndDlg, ID_SPLITPANE); // check if the current splitter orientation is horizontal if (style & SPLITS_ROWS) ...

wSplitSetStyle
This macro changes one or more WC_SPLITPANE specific styles (i.e. it does not take into account the WS_* standard window styles).
Syntax:
BOOL wSplitSetStyle(HWND hwnd, ULONG newStyle, ULONG changeMask);
Parameters:
HWND hwnd:splitpane window handle.
ULONG newStyle:new splitpane style (any combination of the SPLITS_* flags).
ULONG changeMask:mask specifying which specific styles are to be set or unset.
Return value:
BOOL:TRUE if the operation was successful,
FALSE in case of error.
Example:
// to make the left/top pane collapsable rc = wSplitSetStyle(hwndSplitPane, SPLITS_HIDEPANE1, SPLITS_HIDEPANE1); // to make ONLY the left/top pane collapsable rc = wSplitSetStyle(hwndSplitPane, SPLITS_HIDEPANE1, SPLITS_HIDEPANES); // to make NO pane collapsable rc = wSplitSetStyle(hwndSplitPane, SPLITS_HIDENONE, SPLITS_HIDEPANES); ...

dSplitSetStyle
This macro changes one or more WC_SPLITPANE specific styles (i.e. it does not take into account the WS_* standard window styles).
Syntax:
BOOL dSplitSetStyle(HWND hwndDlg, ULONG id, ULONG newStyle, ULONG changeMask);
Parameters:
HWND hwndDlg:dialog window handle.
ULONG id:splitpane window ID.
ULONG newStyle:new splitpane style (any combination of the SPLITS_* flags).
ULONG changeMask:mask specifying which specific styles are to be set or unset.
Return value:
BOOL:TRUE if the operation was successful,
FALSE in case of error.
Example:
// to make the left/top pane collapsable rc = dSplitSetStyle(hwndDlg, ID_SPLITPANE, SPLITS_HIDEPANE1, SPLITS_HIDEPANE1); // to make ONLY the left/top pane collapsable rc = dSplitSetStyle(hwndDlg, ID_SPLITPANE, SPLITS_HIDEPANE1, SPLITS_HIDEPANES); // to make NO pane collapsable rc = dSplitSetStyle(hwndDlg, ID_SPLITPANE, SPLITS_HIDENONE, SPLITS_HIDEPANES); ...