WindowSetMaxSize window size Sets the maximum size of the window, to indicate to the sizer layout mechanism that this is the maximum possible size.