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.

bool CDialogs:isplaySafetyDialog(HWND wnd)
{
HWND retValue = CreateDialog(m_instance, MAKEINTRESOURCE(IDD_SAFETY), NULL, dialogProc);


return true;
}

INT_PTR CALLBACK CDialogs:ialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
static int num;
BOOL translated = false;

switch (uMsg)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDOK:
if (num == GetDlgItemInt(hwnd, IDC_INPUT, &translated, false))
{
DestroyWindow(hwnd);
}
return TRUE;
case IDCANCEL:
DestroyWindow(hwnd);
return TRUE;
default:
break;
}
break;
default:
break;
}

return FALSE;

}

Any help will be appreciated,
Best regards,
Alex