wSplitQueryPosSize | |
This macro queries the position and size of a WC_SPLITPANE control or of one of its children. | |
Syntax: | |
BOOL wSplitQueryPosSize(HWND hwnd, ULONG scope, PWPOSSIZE pwps); | |
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). |
PWPOSSIZE pwps: | (output) address of a WPOSSIZE structure. Note: WPOSSIZE is defined in axPM.h as: typedef struct { LONG x, y, cx, cy; } WPOSSIZE, * PWPOSSIZE; |
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: | |
WPOSSIZE wps; BOOL rc; rc = wSplitQueryPosSize(hwndSplitPane, SPLITMP_WHOLEPANE, &wps); ... |
dSplitQueryPosSize | |
This macro queries the position and size of a WC_SPLITPANE control or of one of its children. | |
Syntax: | |
BOOL dSplitQueryPosSize(HWND hwndDlg, ULONG id, ULONG scope, PWPOSSIZE pwps); | |
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). |
PWPOSSIZE pwps: | (output) address of a WPOSSIZE structure. Note: WPOSSIZE is defined in axPM.h as: typedef struct { LONG x, y, cx, cy; } WPOSSIZE, * PWPOSSIZE; |
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: | |
WPOSSIZE wps; BOOL rc; rc = dSplitQueryPosSize(hwndDlg, ID_SPLITPANE, SPLITMP_WHOLEPANE, &wps); ... |