Search code examples
mfcdialogsplitter

How to create splitter window in dialog, attach example


I am practice on splitter window, I reference to this web site,

Creating a Splitter Window in a Dialog Box in Three Easy Steps

when I build it, some thing error I cant solve it, like follow code...

Out of memory creating a splitter pane.
Error: Trying to create object which is not DECLARE_DYNCREATE 
or DECLARE_SERIAL: CDialogEx.

Out of memory creating a splitter pane.

Error: Trying to create object which is not DECLARE_DYNCREATE 
or DECLARE_SERIAL: CDialogEx.

the link for download this example, please rewrite the example,

splitter dialog example

the other feature, I want to create a two panel with button and static

and listcontrol item.

thanks guy.


Solution

  • Don't use a dialog base application. Just use the wizard. Create a SDI sample with a CFormView... integrate the splitter window later.

    It doesn't make sense to me to create a dialog and to integrate all the CFrameWnd features into a CDialog...