• Advertisement

Archived

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

Cut off the top bar from a window after execution?

This topic is 5379 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

Is it possible to remove the windows bar from a window(the bar that you can use to drag/close/minimize/maximize a window) when this window is already made? And how can you do that?

Share this post


Link to post
Share on other sites
Advertisement
You can use SetWindowLong to fix the styles

Share this post


Link to post
Share on other sites
quote:
Original post by Maega
You can use SetWindowLong to fix the styles



thanks a lot!! :D

Share this post


Link to post
Share on other sites
When I use the following code, my window totally freaks out (doesn''t get drawn anymore and the graphics are sticky on the other applications that I run).

SetWindowLong(hWnd, GWL_STYLE, WS_POPUP);

Share this post


Link to post
Share on other sites
This is doing it fine:

ShowWindow(hWnd, SW_HIDE);
SetWindowLong(hWnd, GWL_STYLE, WS_SYSMENU);
ShowWindow(hWnd, SW_NORMAL);


Thanks for your help!

[edited by - Vich on May 3, 2003 2:34:35 PM]

Share this post


Link to post
Share on other sites

  • Advertisement