The SPLITPCREATE structure

The SPLITPCREATE structure is used to comfortably create both a splitpane and its child panes via the WinCreateSplitPane() API.
It embeds two SPLITPANECHILD for child panes data.
See the splitpane in standard windows example code for more details on typical usage.

Structure definition

#pragma pack(2) typedef struct _SPLITPCREATE SPLITPCREATE; typedef SPLITPCREATE * PSPLITPCREATE; struct _SPLITPCREATE { SPLITPANECHILD pane1; // data of the left/top pane SPLITPANECHILD pane2; // data of the right/bottom pane PSPLITCTLDATA pCtlData; // optional control data PVOID pPresParams; // optional presentation parameters } ;
SPLITPANECHILD pane1
embedded SPLITPANECHILD structure to describe details about the left/top child pane.
SPLITPANECHILD pane2
embedded SPLITPANECHILD structure to describe details about the right/bottom child pane.
PSPLITCTLDATA pCtlData
optional address of a SPLITCTLDATA to initialize the splitpane to non-default values.
PVOID pPresParams
optional presentation parameters address.