How can I make it so my window never gets any smaller than x,y? Which WINAPI function can do this?
Thanks
You reply to WM_GETMINMAXINFO and fill in the structure with your limits.
You can do that by handling WM_GETMINMAXINFO & modifying MINMAXINFO.
WM_GETMINMAXINFO
MINMAXINFO