I was trying to make a MDI application using ONLY the Inmemory Dialogs.
I become to the conclusion that there is NO WAY to make an MDI without using the DLGTEMPLATEEX or DLGITEMTEMPLATEEX format instead of the DLGTEMPLATE/DLGITEMTEMPLATE used by the dialogs.inc
Does somebody has an example -or a clue- of how to use the DLGTEMPLATEEX / DLGITEMTEMPLATEEX format ?
Thank you in advance!
I don't have any examples, but if you tell us which features of the extended templates (that are not in the normal templates) that you intend to use, someone might be able to suggest a way to use the normal templates.
I used DLGTEMPLATEEX in Res2Dlg, an addin for RadASM I wrote quite a while ago though it is populated using a RadASM dialog resource file it might be of some use, you can get a copy from the RadASM page in the Addins zip file or on my website.
Somewhere along the line I think you can just change the window extended style after it is created.
After review the DLGTEMPLATEEX Struct from the Res2Dlg.inc of yours, Donkey, I think that's the clue I was looking for. ;)
Quote from: hutch-- on October 24, 2008, 02:44:12 AM
Somewhere along the line I think you can just change the window extended style after it is created.
Hey, Huth: Can I change the window's class name also?
Thank you guys!
Quote from: caraveiro on October 25, 2008, 08:00:07 PM
Hey, Huth: Can I change the window's class name also?
Thank you guys!
No, changing the class name is not possible without destroying and recreating the window under the new class. Remember that window names are atomic in nature and to change the atom associated with the window is not possible at run time.
It would seem that the parent window is just a normal window, the child window needs to be set as an MDI child and that should be able to be done with SetWindowLong() with the extended style.