Window that wont resize?

Started by
2 comments, last by Noods 20 years, 8 months ago
Is there a way to create a window that wont resize using c++ and the win32 API?
Advertisement
Sure. You can specify in the CreateWindowEx function a window style that doesn''t have the sizing border and maximize box. Check MSDN (msdn.microsoft.com) for more about that function.

"Life is very short, and there''s no time for fussing and fighting my friend..."
"Life is very short, and there's no time for fussing and fighting my friend..."
I have already checked that function on MSDN numerous times. None of those styles create a window will a non-sizable edge.
there is a particular style flag you have to use.. search msdn for WS_
[edit]
i looked it up for ya .. use WS_BORDER or if you want to add a sysmenu and title bar use WS_POPUPWINDOW..
WS_BORDER will give you a thin line border, which is essentially makes it un-resizable and WS_POPUPWINDOW is a combination of WS_BORDER,WS_SYSMENU and WS_POPUP
[/edit]
Get busy livin' or get busy dyin'... - Shawshank Redemption
Altered Vision

[edited by - syrillix on August 13, 2003 5:49:41 AM]
Get busy livin' or get busy dyin'... - Shawshank RedemptionIf a man is talking in the forest, and no woman is around to hear him, is he still wrong? - UnknownFulcrum

This topic is closed to new replies.

Advertisement