use a modeless dialog
Modified: trunk/reactos/base/applications/servman/create.c
_____
Modified: trunk/reactos/base/applications/servman/create.c
--- trunk/reactos/base/applications/servman/create.c 2006-02-05
09:48:22 UTC (rev 95)
+++ trunk/reactos/base/applications/servman/create.c 2006-02-05
20:09:42 UTC (rev 96)
@@ -89,7 +89,12 @@
EndDialog(hDlg, LOWORD(wParam));
return TRUE;
}
- break;
+ break;
+
+ case WM_DESTROY:
+ DestroyWindow(hDlg);
+ PostQuitMessage(0);
+ break;
}
return FALSE;
@@ -207,10 +212,18 @@
return TRUE;
case ID_CREATE_HELP:
- DialogBox(hInstance,
- MAKEINTRESOURCE(IDD_DLG_HELP_OPTIONS),
- hDlg,
- (DLGPROC)CreateHelpDialogProc);
+ {
+ HWND hHelp;
+
+ hHelp = CreateDialog(hInstance,
+
MAKEINTRESOURCE(IDD_DLG_HELP_OPTIONS),
+ hDlg,
+ (DLGPROC)CreateHelpDialogProc);
+ if(hHelp != NULL)
+ {
+ ShowWindow(hHelp, SW_SHOW);
+ }
+ }
break;
}