It's possible to convert dialogs into MDI Child Windows without loosing everything I've done with resources ?
Printable View
It's possible to convert dialogs into MDI Child Windows without loosing everything I've done with resources ?
One option would be to create a custom window class based on the dialog class (see Custom Dialog Boxes); this window class, once modified would become an mdi child window class. Another option is to just glue your dialog (borderless) onto the client area of an mdi child window(ie. make the dialog a child of the mdi child window), which would probably be much simpler, particularly if you're not familiar with custom dialogs.
Thanks, but how can I glue dialog to MDI Child Window ?
If the dialog is a child window just make its dimensions relative to the parent (mdi child) window's client area. Failing that, just SetWindowPos in the dialog's WM_INITDIALOG handler.
Can you give me an example?
Oops, forgot about this - example attached (drop the .txt from script.rc.txt; cprog doesn't currently permit upload of *.rc files).