I inserted all known commands for activating dialog box, but it appears greyed (non-activated) on Win98 - user still must click the mouse to reach window. Therefore on W2K dialog behaves OK.
Is this problem related with my actions before DialogBox? But I really have no owner window - need to start with DialogBox. Anyone uses this technique?Code:<Resource script:> DIALOG DISCARDABLE STYLE DS_MODALFRAME | DS_SETFOREGROUND | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU ... <WINAPI WinMain:> DialogBox( GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_START), NULL, StartProc); ... BOOL CALLBACK StartProc(HWND hstart, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { case WM_INITDIALOG: SetWindowPos((struct HWND__ *)hstart, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); SetActiveWindow(hstart); SetForegroundWindow(hstart); break; ...



LinkBack URL
About LinkBacks


