jmasterx
jmasterx

Reputation: 54103

Setting a Window's Minimum and Maximum Size using WINAPI

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

Answers (2)

Alex K.
Alex K.

Reputation: 175748

You can do that by handling WM_GETMINMAXINFO & modifying MINMAXINFO.

Upvotes: 3

Blindy
Blindy

Reputation: 67362

You reply to WM_GETMINMAXINFO and fill in the structure with your limits.

Upvotes: 12

Related Questions