Using the splitpane control in your programs

The first thing to do in order to use a splitpane control in your application is to register its class.
rc = WinSplitPaneRegister(hab);
Then you can load a dialog template containing WC_SPLITPANE CONTROL statements or use WinCreateWindow() to create the splitpane and its two child windows within the client of a standard window.

It should be noticed that, due to the PM programming interface, in the current splitpane implementation, the child panes are not real child windows but a sort of virtual ones. They are just splitpane siblings whose position, size and visibility is controlled by the splitpane as if it were their real parent, so they must be created separately and then a PM message must be sent to the splitpane to notify it the handles of the sibling windows it must control.