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);
...
|