wSplitMinSize | |
This macro returns the minimum width or height of a WC_SPLITPANE virtual child (i.e. a side pane). | |
Syntax: | |
UINT wSplitMinSize(HWND hwnd, ULONG scope); | |
Parameters: | |
HWND hwnd: | splitpane window handle. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_LEFT (minimum width of the left child), SPLITMP_TOP (minimum height of the top child), SPLITMP_RIGHT (minimum width of the right child), or SPLITMP_BOTTOM (minimum height of the bottom child). |
Return value: | |
UINT: | minimum width or heigth of a side pane. |
Remarks: | |
The default value of the minimum width and height of side panes is 0. That means that the splitter can be moved up to the splitpane borders completely hiding a pane. When the total width or height of the splitpane is less than the sum of the minimum widths or heights of the side panes (and of the splitter thickness) the minimum sizes are ignored. | |
Example: | |
UINT minLeftWidth; minLeftWidth = wSplitMinSize(hwndSplitPane, SPLITMP_LEFT); ... |
dSplitMinSize | |
This macro returns the minimum width or height of a WC_SPLITPANE virtual. | |
Syntax: | |
dSplitMinSize(HWND hwndDlg, ULONG id, ULONG scope); | |
Parameters: | |
HWND hwndDlg: | dialog window handle. |
ULONG id: | splitpane window ID. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_LEFT (minimum width of the left child), SPLITMP_TOP (minimum height of the top child), SPLITMP_RIGHT (minimum width of the right child), or SPLITMP_BOTTOM (minimum height of the bottom child). |
Return value: | |
UINT: | minimum width or heigth of a side pane. |
Remarks: | |
The default value of the minimum width and height of side panes is 0. That means that the splitter can be moved up to the splitpane borders completely hiding a pane. When the total width or height of the splitpane is less than the sum of the minimum widths or heights of the side panes (and of the splitter thickness) the minimum sizes are ignored. | |
Example: | |
UINT minLeftWidth; minLeftWidth = dSplitMinSize(hwndDlg, ID_SPLITPANE, SPLITMP_LEFT); ... |
wSplitSetMinSize | |
This macro sets the minimum width or height of a WC_SPLITPANE side pane. | |
Syntax: | |
BOOL wSplitSetMinSize(HWND hwnd, ULONG scope, INT size, BOOL bDlgUnits); | |
Parameters: | |
HWND hwnd: | splitpane window handle. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_LEFT (minimum width of the left child), SPLITMP_TOP (minimum height of the top child), SPLITMP_RIGHT (minimum width of the right child), or SPLITMP_BOTTOM (minimum height of the bottom child). |
INT size: | new minimum width or height. Use 0 to reset the minimum width. |
BOOL bDlgUnits: | TRUE to convert size in dialog units, |
Return value: | |
BOOL: | TRUE if the operation was successful, FALSE in case of error. |
Remarks: | |
The default value of the minimum width and height of side panes is 0. That means that the splitter can be moved up to the splitpane borders completely hiding a pane. When the total width or height of the splitpane is less than the sum of the minimum widths or heights of the side panes (and of the splitter thickness) the minimum sizes are ignored. | |
Example: | |
// set the minimum width of the left pane to 100 dialog units rc = wSplitSetMinSize(hwndSplitPane1, SPLITMP_LEFT, 100, TRUE); // set the minimum height of the top pane to 80 pixels rc = wSplitSetMinSize(hwndSplitPane2, SPLITMP_TOP, 80, FALSE); ... |
dSplitSetMinSize | |
This macro sets the minimum width or height of a WC_SPLITPANE side pane. | |
Syntax: | |
BOOL dSplitSetMinSize(HWND hwndDlg, ULONG id, INT size, BOOL bDlgUnits); | |
Parameters: | |
HWND hwndDlg: | dialog window handle. |
ULONG id: | splitpane window ID. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_LEFT (minimum width of the left child), SPLITMP_TOP (minimum height of the top child), SPLITMP_RIGHT (minimum width of the right child), or SPLITMP_BOTTOM (minimum height of the bottom child). |
INT size: | new minimum width or height. Use 0 to reset the minimum width. |
BOOL bDlgUnits: | TRUE to convert size in dialog units, |
Return value: | |
BOOL: | TRUE if the operation was successful, FALSE in case of error. |
Remarks: | |
The default value of the minimum width and height of side panes is 0. That means that the splitter can be moved up to the splitpane borders completely hiding a pane. When the total width or height of the splitpane is less than the sum of the minimum widths or heights of the side panes (and of the splitter thickness) the minimum sizes are ignored. | |
Example: | |
// set the minimum width of the left pane to 100 dialog units rc = dSplitSetMinSize(hwndDlg, ID_SPLITPANE1, SPLITMP_LEFT, 100, TRUE); // set the minimum height of the top pane to 80 pixels rc = dSplitSetMinSize(hwndDlg, ID_SPLITPANE2, SPLITMP_TOP, 80, FALSE); ... |