Updating control data
The
SPLITCTLDATA structure can be used to set at once multiple properties
of a splitpane control on window creation (as a WinCreateWindow()
parameter or as a CTLDATA resource script statement) or any time by
sending the WM_SETWINDOWPARAMS message as described in the example
below.
WNDPARAMS wp;
SPLITCTLDATA scd;
memset(&scd, 0, sizeof(scd));
scd.cb = sizeof(scd);
memset(&wp, 0, sizeof(wp));
wp.fsStatus = WPM_CTLDATA;
wp.cbCtlData = scd.cb;
wp.pCtlData = &scd;
scd.splitterPos = -20;
scd.minLeft = 100;
scd.minRight = 200;
scd.thickness = 10;
scd.style = SPLITS_ROWS;
scd.flag = SPLITCD_POS | SPLITCD_MINLEFT | SPLITCD_MINRIGHT |
SPLITCD_THICKNESS | SPLITCD_STYLE;
WinSendMsg(g.hwndSplitPane, WM_SETWINDOWPARAMS, (MPARAM)&wp, MPVOID);
...