Reputation: 54103
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: 6747
Reputation: 175748
You can do that by handling WM_GETMINMAXINFO
& modifying MINMAXINFO
.
Upvotes: 3
Reputation: 67362
You reply to WM_GETMINMAXINFO and fill in the structure with your limits.
Upvotes: 12