- DLL with Modal Dialog?
- Posted by JaxSeagull on March 11th, 2005
I'm new to VC++ (.NET). I've created a simple DLL that is a plug-in,
called from a 3rd party application. There is essentially no
parameters passed to the DLL.
I want the DLL to be able to present modal dialogs, either to get
information from the user, or to present error messages.
What would be the easiest way to hook up dialog functionality? MFC?
ATL? Win 32? I'm not sure where to start.
Thanks,
JaxSeagull
- Posted by Sten Westerback on March 14th, 2005
"JaxSeagull" <JaxSeagull@yahoo.com> wrote in message
news:55n331pod6ko7dr059dr0njl3hada1d2ht@4ax.com...
Modal dialogs have their own internal message loop so just call DialogBox()
and it'll work. Naturally the thread that is calling the function won't do
anything
else while the dialog box is displayed, unless your dlgproc does something..

If you meant modeless dialog box then you need to start a separate message
loop thread. The most appropriate place to do that would be in DllMain()
as you will need the HWND to the dialog in calls to IsDialogMessage().
- Sten
- modeless and modal dialog (Development Resources) by Zachary Turner
- a non-modal dialog behaviour (Development Resources) by dwalin
- DialogBoxParam -> Dialog box is NOT modal??? (Development Resources) by Pelle
- How to tell if the parent window displaying a MessageBox or modal dialog (Development Resources) by IanM
- Handling DebugActiveProcess exceptions which generate system modal dialog ... (Development Resources) by Trey Harragan

