wSplitQueryRectl | |
This macro queries the coordinates of a WC_SPLITPANE control or of one of its children. | |
Syntax: | |
BOOL wSplitQueryRectl(HWND hwnd, ULONG scope, PRECTL prect); | |
Parameters: | |
HWND hwnd: | splitpane window handle. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_WHOLEPANE to mean the whole splitpane, SPLITMP_PANE1 (left/top pane) or SPLITMP_PANE2 (right/bottom pane). |
PRECTL prect: | (output) address of a RECTL structure. |
Return value: | |
BOOL: | TRUE if the operation was successful, FALSE in case of error. |
Remarks: | |
WinSetWindowPos() is used to change the position and size of the whole WC_SPLITPANE rectangle. wSplitterSetPos() and dSplitterSetPos() are used to change the sizes of both the virtual children by changing the splitter position. | |
Example: | |
RECTL r; BOOL rc; rc = wSplitQueryRectl(hwndSplitPane, SPLITMP_WHOLEPANE, &r); ... |
dSplitQueryRectl | |
This macro queries the coordinates of a WC_SPLITPANE control or of one of its children. | |
Syntax: | |
BOOL dSplitQueryRectl(HWND hwndDlg, ULONG id, ULONG scope, PRECTL prect); | |
Parameters: | |
HWND hwndDlg: | dialog window handle. |
ULONG id: | splitpane window ID. |
ULONG scope: | identifies the scope of the request. It can be: SPLITMP_WHOLEPANE to mean the whole splitpane, SPLITMP_PANE1 (left/top pane) or SPLITMP_PANE2 (right/bottom pane). |
PRECTL prect: | (output) address of a RECTL structure. |
Return value: | |
BOOL: | TRUE if the operation was successful, FALSE in case of error. |
Remarks: | |
WinSetWindowPos() is used to change the position and size of the whole WC_SPLITPANE rectangle. wSplitterSetPos() and dSplitterSetPos() are used to change the sizes of both the virtual children by changing the splitter position. | |
Example: | |
RECTL r; BOOL rc; rc = dSplitQueryRectl(hwndDlg, ID_SPLITPANE, SPLITMP_WHOLEPANE, &r); ... |