Setting a Window's Minimum and Maximum Size using WINAPI

前端 未结 2 768
刺人心
刺人心 2020-12-11 18:24

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

Thanks

相关标签:
2条回答
  • 2020-12-11 18:47

    You can do that by handling WM_GETMINMAXINFO & modifying MINMAXINFO.

    0 讨论(0)
  • 2020-12-11 18:50

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

    0 讨论(0)
提交回复
热议问题