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