flat assembler
Message board for the users of flat assembler.

Index > Windows > TOPMOST window behavior

Author
Thread Post new topic Reply to topic
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith
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.
Post 31 Jan 2005, 22:59
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
Every window stays always above it's owner window. You don't need to make it topmost.

Regards.
Post 01 Feb 2005, 00:13
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith
John,

If I don't make the window topmost, I disappears if I click anything outside the window (such as the RAEdit control it sits over).

I want my window to behave like the find dialog that comes with common controls.

Mike
Post 01 Feb 2005, 01:43
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3502
Location: Bulgaria
JohnFound
msmith wrote:
John,

If I don't make the window topmost, I disappears if I click anything outside the window (such as the RAEdit control it sits over).

I want my window to behave like the find dialog that comes with common controls.

Mike


Wrong. Visibly you didn't set proper owner window for your "find" dialog. When you create the window you must set his owner window - i.e. the window on top of what the dialog will stay... Read carefully description of CreateWindowEx. (Note: parent window and owner window is not the same! Owner window can be set only once when the control is being created.)

Regards.
Post 01 Feb 2005, 06:33
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith
How does the find dialog in common controls accomplish this behavior?
Post 01 Feb 2005, 17:07
View user's profile Send private message Reply with quote
msmith



Joined: 22 Jun 2003
Posts: 40
Location: Missouri
msmith
WS_EX_APPWINDOW does the job nicely!
Post 03 Feb 2005, 03:51
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.