0

Hi,

Is there a way to stop the user from rezising to window ; so the user won't be able to make the window any bigger or smaller just the size i give to the window.

I tried looking it up on this forum and MSDN , but MSDN is way too big so i cant really find my information on there.

Is there a simple function to implent so you cannot resize?

greets,
Roel

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by h3llpunk
0

Either change the style of the window, or add this to your windows procedure:

case WM_GETMINMAXINFO:
  {
    MINMAXINFO *mmi = (MINMAXINFO*) lParam;
    mmi->ptMinTrackSize.x = mmi->ptMaxTrackSize.x = 500; // Width
    mmi->ptMinTrackSize.y = mmi->ptMaxTrackSize.y = 500; // Height
  }
  break;

Hope this helps.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.