Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie - Setting topmost from within OnBnClickedxxx

Status
Not open for further replies.

RichGL

IS-IT--Management
Dec 18, 2003
5
US
Hi,

I've got a dialogue window that also includes a check box I can tick to make a window on-top and non on-top.

I've created the code that flip flops the bool flag but I am having no luck figuring out where to send the value to actually set the proper window flag.

The value I want to set is the TopMost value that appears in the dialogue properties.

Can anyone help with this please?
Rich.
 
you should set the flag WS_POPUP to window style. Get the style with GetWindowLong(yourWnd, GWL_STYLE), set this flag and do a SetWindowLong

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top