Archived

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

Vich

Cut off the top bar from a window after execution?

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
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