Limiting a Window's Size
-
Which messages should I process to ensure my window cannot be reduced below a certain size? I'm currently processing the WM_SIZING message which works fine when the user is dragging the edge of the window but it's possible to use explorer to highlight multiple windows on the taskbar and then select the 'Show Windows Stacked' option from the context menu. This currently results in the window size being reduced below it's minium.
-
Which messages should I process to ensure my window cannot be reduced below a certain size? I'm currently processing the WM_SIZING message which works fine when the user is dragging the edge of the window but it's possible to use explorer to highlight multiple windows on the taskbar and then select the 'Show Windows Stacked' option from the context menu. This currently results in the window size being reduced below it's minium.
Try WM_GETMINMAXINFO[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Try WM_GETMINMAXINFO[^].
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
That did the job. Thanks for the suggestion.