I would just like to know if anyone here can please tell me what the difference is between a modal and modeless dialog box, in english please.
I have read numerous books on the Win32 API on this subject, but none of them seem to mention clear differences between modal and modeless dialog boxes. they give very simple descriptions like "a modeless dialog is more independant than a modal" and "a modal is the most common" however that tells me nothing about the real difference.
in the last release of my program I used a simple call to DialogBox to create the main dialog box window. but in this release, I will be implementing a whole bunch of GUI enhancements, including more menus and accelerator keys.
however in this release I don't see how I am going to be able to position a function like TranslateAccelerator in my WinMain and pass the dialog window the translated accelerator messages if I don't have a valid handle of the dialog window inside of WinMain. replacing DialogBox with CreateDialog would solve this, but DialogBox creates a modal dialog box, and CreateDialog creates a modeless dialog box .
could anyone please help me out with this modal and modeless thing? also do you think its possible for me to use DialogBox and still handle things like accelerator keys, and if so how should I go about that (would it be ok without a message loop containing a TranslateMessage?)?
any help here would be greatly appreciated. thank you in advance.