Reputation: 54183
How can I make it so my window never gets any smaller than x,y? Which WINAPI function can do this?
Thanks
Upvotes: 8
Views: 6769
Reputation: 175976
You can do that by handling WM_GETMINMAXINFO
& modifying MINMAXINFO
.
Upvotes: 3
Reputation: 67524
You reply to WM_GETMINMAXINFO and fill in the structure with your limits.
Upvotes: 12