Creating a CWnd with a dialog resource
-
Hi ! Is it possible to create a CWnd which would have it's client area look like a dialog resource ? Why ? Because CDialog class doesn't have a great support for menus, docking toolbars or other stuff a CWnd has.. CFormView is the closest thing to what I want to achieve (CFrameWnd with CFormView as the view), but I do not want to use the document template. And using a CFormView without a document template is daunting process (read: I have no clue how) In addition to all this, my dialog MUST have a classname as well.. So, any suggestions on where to begin ? Namely, how to bind a dialog template to a CWnd :) Thanks, Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
Hi ! Is it possible to create a CWnd which would have it's client area look like a dialog resource ? Why ? Because CDialog class doesn't have a great support for menus, docking toolbars or other stuff a CWnd has.. CFormView is the closest thing to what I want to achieve (CFrameWnd with CFormView as the view), but I do not want to use the document template. And using a CFormView without a document template is daunting process (read: I have no clue how) In addition to all this, my dialog MUST have a classname as well.. So, any suggestions on where to begin ? Namely, how to bind a dialog template to a CWnd :) Thanks, Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.
-
You MUST not use the doc, you code your programm around. It only helps you with some routines. Another approach can be the modeless dialog. There are some samples in the MSDN and maybe in CP. Try this @ home. (B&B)
Thanks for the reply ! Unfortunately, I couldn't find any ways to 'code this around'.. Any hints on where I could find such articles ? Like I described in my opening post, using a CDialog-derived class is NOT an option, unless you can tell me how I can specify a menu resource, a class name and a window name while building the dialog. Does the CDialog have a suitable overridden CWnd::Create for this purpose ? Greets, Antti ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.