In memory Dialogs using DLGTEMPLATEEX or DLGITEMTEMPLATEEX format?

Started by caraveiro, October 23, 2008, 11:14:58 PM

Previous topic - Next topic

caraveiro


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!
"knowledge is now free at last, everything should be free from now on, enjoy knowledge and life and work for everybody else"
+ORC
http://www.fravia.com

MichaelW

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.
eschew obfuscation

donkey

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.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

hutch--

Somewhere along the line I think you can just change the window extended style after it is created.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

caraveiro

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!
"knowledge is now free at last, everything should be free from now on, enjoy knowledge and life and work for everybody else"
+ORC
http://www.fravia.com

donkey

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.
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

hutch--

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.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php