nonactivated dialog
-
Is it possible to create a modeless dialog that does not pop itself or owning application above all desktop windows ? I tried following, but didn't work: D->initiallyHidden=1; D->Create(IDD,0); D->SetWindowPos(NULL,0,0,0,0, SWP_SHOWWINDOW|SWP_NOOWNERZORDER|SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE); I got some success with: CWnd *w=GetForegroundWindow(); D->Create(...) if(w)w->SetForegroundWindow(); but it makes dialogs parent application flicker.
-
Is it possible to create a modeless dialog that does not pop itself or owning application above all desktop windows ? I tried following, but didn't work: D->initiallyHidden=1; D->Create(IDD,0); D->SetWindowPos(NULL,0,0,0,0, SWP_SHOWWINDOW|SWP_NOOWNERZORDER|SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE); I got some success with: CWnd *w=GetForegroundWindow(); D->Create(...) if(w)w->SetForegroundWindow(); but it makes dialogs parent application flicker.
My first thought is to use
ShowWindow()
instead ofSetWindowPos()
and play around with the parameter (SW_SHOWNOACTIVATE
looks like the right one). You need to turn off the Visible style in the dialog resource, otherwise it will automatically be shown during theCreate()
call. --Mike-- I'm bored... Episode I bored. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm