How can I make a child window topmost?

Posted by Colen on Stack Overflow See other posts from Stack Overflow or by Colen
Published on 2010-05-13T00:22:56Z Indexed on 2010/05/13 0:54 UTC
Read the original article Hit count: 271

Filed under:
|
|

Hi,

I have a parent form, with some child windows (not forms - just windows, for example label controls) inside it. Under certain circumstances, I want one of those child windows to be drawn "above" the others, to display a message over the entire main form.

I've tried setting HWND_TOPMOST and HWND_TOP on the child windows, but it doesn't seem to have any effect at all. Am I doing something wrong, or do HWND_TOPMOST and HWND_TOP only work on forms, as opposed to controls within forms?

Thanks.

© Stack Overflow or respective owner

Related posts about win32

Related posts about c++