Frage

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.

War es hilfreich?

Lösung

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...

Andere Tipps

I replaced the CDialog1 with CWnd then solved this problem.

ccc.m_pNewViewClass = RUNTIME_CLASS(CWnd);
m_cSplitter.CreateView(0,0, RUNTIME_CLASS(CWnd),
    CSize(100,100), &ccc);
m_cSplitter.CreateView(0,1, RUNTIME_CLASS(CWnd),
    CSize(100,100), &ccc);
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top