If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Creating a dialog from a dll

Hello,

I have a dll I built to be loaded as a pluging. As part of the dll I have a dialog I'm trying to create and display.
The dialog is created and displayed using CreateDialog, however once the dialog is shown it doesn't respond, as soon as I pass the mouse over the dialog the mouse pointer changes to busy, and the dialog isn't responding while the rest of the module keeps running.

Re: Creating a dialog from a dll

Originally Posted by khalameizer

Hello,

I have a dll I built to be loaded as a pluging. As part of the dll I have a dialog I'm trying to create and display.
The dialog is created and displayed using CreateDialog, however once the dialog is shown it doesn't respond, as soon as I pass the mouse over the dialog the mouse pointer changes to busy, and the dialog isn't responding while the rest of the module keeps running.

Re: Creating a dialog from a dll

Originally Posted by khalameizer

as soon as I pass the mouse over the dialog the mouse pointer changes to busy, and the dialog isn't responding while the rest of the module keeps running.

You need to learn about modal and modeless dialogs. CreateDialog just creates modeless dialog which requires a proper message pump be present in the thread. DialogBox function creates a modal dialog and internally takes care about dialog messages proper pumping.