Advertisement

The Maximize Box

Started by November 26, 2000 10:55 PM
1 comment, last by vbisme 24 years, 2 months ago
How can I create a window with everything but the "restore/maximize" button?
  
CreateWindow(WINDOW_CLASS_NAME, // class

"My Window",	     // title

WS_TILED | WS_MINIMIZEBOX,	
0,0,	   // x,y

GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN),// width, height

NULL,	   // handle to parent 

NULL,	   // handle to menu

hInstance,// instance

NULL)))	// creation params

  
When I impliment this and called the ShowWindow(hwnd, SW_SHOWMAXIMIZED), there''s no MinimizeBox. And what about the CloseBox or something? I just don''t want a "restore/maximize" buttong so that my window is maximized all the time, but I do want to user to be able to minimize of close the window.
You also need the WS_SYSMENU option.

=======================================
Better to reign in hell than serve in heaven.
John Milton, Paradise Lost
Advertisement
I use:

WS_OVERLAPPED | WS_VISIBLE | WS_SYSMENU | WS_MINIMIZEBOX

-Ironblayde
 Aeon Software

Next thing you know, they''ll take my thoughts away.
"Your superior intellect is no match for our puny weapons!"

This topic is closed to new replies.

Advertisement