Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » CExtResizableDialog inside CExtControlBar Collapse All
Subject Author Date
Martin Gustafsson Oct 22, 2004 - 10:13 AM

This might be a MFC specific question and not related to Prof-UIS, I’m sorry if that’s the case.

How come neither OnInitDialog() or DoDataExchange() is called when I add a CExtResizableDialog derived object to a CExtControlBar?

m_ControlBar.Create(_T("Res Dialog"), this, ID_VIEW_DIALOG1);
m_ResizableDialog.Create(IDD_DIALOG1, &m_ControlBar);

Thanks,

// Martin

Dmitry Dulepov Oct 25, 2004 - 1:09 AM

Actually DoDataExchange is called by CDialog::OnInitDialog, so they are related.

Is the dialog actuall created? May be you have custom controls in ot and it just fails to create...

Martin Gustafsson Oct 26, 2004 - 5:24 AM

Yeah...I made such a lame misstake that I’m embarrassed to write it here.
I forgot to change the base-class in IMPLEMENT_DYNAMIC. =)

Technical Support Oct 23, 2004 - 3:54 AM

The problem described in your message looks like a result of some kind of typo. We have no idea how it happens. You may send us a test project so that we could clarify the problem.