How do I disable the maximizing and/or minimizing capability of a window with the Windows API? The maximize/minimize boxes need to be greyed out and disabled, and double clicking the title bar, dragging to the top of the screen, etc needs to not work also.
1 Answers
2
votes
You can call SetWindowLong/SetWindowLongPtr to modify a window's styles.
For furthur detail, please refer to:
http://msdn.microsoft.com/en-us/library/ms633591%28v=VS.85%29.aspx
or http://msdn.microsoft.com/en-us/library/ms644898%28VS.85%29.aspx
Then, what do u mean about 'draging to the top of the screen'?