I have created a "find" dialog using WS_EX_TOOLWINDOW style.
It has the TOPMOST setting.
Everything works fine except that it even stays visible when I minimize the window it was created in.
Creating it as a child does not help.
I want it to be topmost in its own process only.
In other words I want it to behave like the "find" dialog in common controls.
Please help.
It has the TOPMOST setting.
Everything works fine except that it even stays visible when I minimize the window it was created in.
Creating it as a child does not help.
I want it to be topmost in its own process only.
In other words I want it to behave like the "find" dialog in common controls.
Please help.
hi msmith,
your toolwin needs no TOPMOST style. just let the main window create it as a "modal dialog". that should be all you want.
...if this should be not all you want please get back here.
edit:
there is also a "common dialog box" for your needs. have look at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/aboutcommondialogboxes/findandreplacedialogboxes.asp
regards,
enodev
your toolwin needs no TOPMOST style. just let the main window create it as a "modal dialog". that should be all you want.
...if this should be not all you want please get back here.
edit:
there is also a "common dialog box" for your needs. have look at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/commondialogboxlibrary/aboutcommondialogboxes/findandreplacedialogboxes.asp
regards,
enodev
It doesn't matter if it's modal or nonmodal. The window that creates the dialog should be the owner/parent of the dialog. Whatever API was used to create the dialog has an argument for the owner or parent window.
For those interested, WS_EX_APPWINDOW does the job.