now I'm creating app with WinApi and I need to have GUI window which has to be at least 300x300 size, how can I set this low boundry.
Thanks.
In your window procedure:
case WM_GETMINMAXINFO:
{
LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam;
lpMMI->ptMinTrackSize.x = 300;
lpMMI->ptMinTrackSize.y = 300;
}
Read more about WM_GETMINMAXINFO
here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With