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.
Posted on 2005-01-30 23:18:06 by msmith
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
Posted on 2005-01-31 20:39:47 by 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.
Posted on 2005-02-01 01:08:39 by tenkey
For those interested, WS_EX_APPWINDOW does the job.
Posted on 2005-02-02 21:36:33 by msmith