
Stupid newbie needs urgent help =)
Quote:
>Since I've only just started programming for windows, I'm having problems
>with this Messageloop thingy. Sure, I've made a few small programs wich all
>work fine (with messageloops), but now when I'm trying to create a larger
>program using more than one dialog box, I've stumbled into some problems.
So, what are your problems?
Quote:
>I suppose i could probably skip the messageloop compleatly, since all the
>dialogs needed to create the program are modal, but that would be bad
>style, right?
Not if that's what you want your application to do.
Quote:
> Another alternative could perhaps be to use nonmodal dialogs
>(like those created with CreateDialog), but then I would need a handle to
>the currently active dialog in the messageloop for the IsDialogMessage
>call, wich leads to further problems - I would have to changle this dialog
>handle each time I use a new dialog (like moving from the delete to the
>search dialog or something..).
There's a nice technique for handling this - see Knowledge Base
article Q71450 "Using One IsDialogMessage() Call for Many Modeless
Dialogs".
Quote:
>By now, you are probably immensly confused, but all I want to know is how
>to implement all my dialogboxes that make up the program.
For now, I'd say stick with your multiple modal dialogs. If it fits
what you want, keep it simple and do that.
Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.