Cut off the top bar from a window after execution?

Started by
3 comments, last by Vich 20 years, 11 months ago
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?
[www.LifeIsDigital.net - My open source projects and articles.
Advertisement
You can use SetWindowLong to fix the styles
quote:Original post by Maega
You can use SetWindowLong to fix the styles



thanks a lot!! :D
[www.LifeIsDigital.net - My open source projects and articles.
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);
[www.LifeIsDigital.net - My open source projects and articles.
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]
[www.LifeIsDigital.net - My open source projects and articles.

This topic is closed to new replies.

Advertisement