• Advertisement

Archived

This topic is now archived and is closed to further replies.

Window always on top: how?

This topic is 5216 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, How can I have my application''s window always on top? (Windows) And how can I disable child dialogs of that window (make them invisible)? Thanks

Share this post


Link to post
Share on other sites
Advertisement
1. When using CreateWindowEx() specify WS_EX_TOPMOST in the extended styles.

2. ShowWindow(child_hwnd, SW_HIDE);


Colin Jeanne | Invader's Realm

[edited by - Invader X on November 12, 2003 10:22:53 PM]

Share this post


Link to post
Share on other sites
Or

SetWindowPos(hwnd, HWND_TOPMOST, NULL, NULL, NULL, NULL, SWP_NOREPOSITION |
SWP_NOSIZE);

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
SetWindowPos() would only work once, while creating the window with WS_EX_TOPMOST would create it as a topmost window.

Share this post


Link to post
Share on other sites
Can''t you use SetWindowLong to add WS_EX_TOPMOST whnever you want?

I''m not great with Win32, so I might be wrong...

Share this post


Link to post
Share on other sites

  • Advertisement