这里有个不错的解决方案解决了该问题,其通过对 WM_GETMINMAXINFO（MSDN： The WM_GETMINMAXINFO message is sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size.） 消息挂接一个钩子来处理。其消息代码是：0x0024（更多的消息代码可以参考本文附录）

[StructLayout(LayoutKind.Sequential)] internal struct MINMAXINFO { public POINT ptReserved; public POINT ptMaxSize; public POINT ptMaxPosition; public POINT ptMinTrackSize; public POINT ptMaxTrackSize; } ;