8

How can I make it so my window never gets any smaller than x,y? Which WINAPI function can do this?

Thanks

jmasterx
  • 52,639
  • 96
  • 311
  • 557

2 Answers2

11

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

Blindy
  • 65,249
  • 10
  • 91
  • 131
3

You can do that by handling WM_GETMINMAXINFO & modifying MINMAXINFO.

Alex K.
  • 171,639
  • 30
  • 264
  • 288