14

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.

ST3
  • 8,826
  • 3
  • 68
  • 92
user3394586
  • 191
  • 1
  • 1
  • 6

1 Answers1

41

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

ST3
  • 8,826
  • 3
  • 68
  • 92