• 0

Dock one CDialog into one other during runtime


Question

Is it possible to make my popup CDilalog into another Cdialog (making it as a child) I?ve figured of the CWnd::ModifyStyle func but it return false when I for e.g. run:

m_dialog.ModifyStyle(ModifyStyle( 0 ,WS_CHILD );

Any suggestions how I could tackle the problem.

I?ve searched for articles round the net but no success?

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Well, if you don't want the dialog to be modal, call ShowWindow instead of DoModal. If you want to parent the dialog to something else, just use SetParent.

EDIT: Ah, okay, I think I see what you're saying. Don't know if that's possible. It's not going to be as simple as just modifying the window's style. A dialog is... well, a dialog. It's not meant to be hosted in another window. If you want an MDI project, create an MDI project. If you're just trying to insert changeable content into a window (a plugin architecture for example), use a CView parented to the base window instead.

Edited by dannysmurf
Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.