|
-
April 20th, 2004, 07:15 AM
#1
Dialog-Boxes which way to choose ?
Hi again.
I want to use dialog-windows in my application. since I don't want to follow the rather prcedural way of coding that microsoft uses in Win32-API I want to build a c++-class that encapsulates a dialog-window.
For some reasons related to this, I don't want to use dialog-ressources.
I found out about CreateDialogIndirect but it is not too coder-friendly. I have to build some weird thing that is called dialog-template in memory. At
http://msdn.microsoft.com/library/de...late_in_memory
I found an example to do this. This looks also weird to me.
I think this is definitely not what I want to do. Those dialog-boxes are somewhat inflexible for my needs. For example I want to add controls to my dialog-instance using a member-function of my class like AddControl().
Enough talk about what I don't like
Now I thought about the following: Why not build the dialog from a simple window ? I'm sure I can make it modal too like a modal dialog.
Before I start with this, please tell me: What are the advantages of using CreateDialog or CreateDialogIndirect over my idea, if there are any ? Am I following a possible path, or should return to the regular path ?
Thanks in advance:
highhead
ps: on the system where I started coding, dialogs ARE simple windows made modal.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|