0

I'm using the Win32 API to create a game, and I want to give the player as big of a field of view as possible. The problem is, with the game engine I've developed (from Michael Morrison's Beginning Game Programming), I can minimize and close the program, but I can't maximize it. I also can't resize the window.
Is there a decent way for me to make that grayed-out maximize button regular, and be able to resize the window?
I didn't consider posting the source code of the WHOLE game engine (including .cpp and header files) important, but if it helps, I could.

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Fbody
0

What would the code to disable/enable the maximize button look like? All I have under WM_CREATE is:

case WM_CREATE:
      // Set the game window and start the game
      SetWindow(hWindow);
      GameStart(hWindow);
      return 0;
0

I don't do any windows programming, so I don't know the actual API call, but I do know that there is a window property that controls that. To activate the maximize button, the "MaximizeBox" property needs to be set to "True". If you have a window style definition, you may be able to do it in there.

Edited by Fbody: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.