| 子程序名 | 返回值类型 | 公开 | 备 注 | ||||
| 窗口_限制尺寸 | 逻辑型 | 限制窗口拉伸最小尺寸与最大尺寸,超出则无法拉伸。注意:不支持外部窗口。 | |||||
| 参数名 | 类 型 | 参考 | 可空 | 数组 | 备 注 | ||
| 窗口句柄 | 整数型 | 最小宽度 | 整数型 | 最小高度 | 整数型 | 最大宽度 | 整数型 | 最大高度 | 整数型 |
SetPropA (窗口句柄, “minimum height”, 最小高度)
SetPropA (窗口句柄, “maximum width”, 最大宽度)
SetPropA (窗口句柄, “maximum height”, 最大高度)
返回 (SetPropA (窗口句柄, “Limit size”, SetWindowLongA (窗口句柄, -4, 到整数 (&限制尺寸回调))))
| 子程序名 | 返回值类型 | 公开 | 备 注 | ||||
| 限制尺寸回调 | 整数型 | ||||||
| 参数名 | 类 型 | 参考 | 可空 | 数组 | 备 注 | ||
| hwnd | 整数型 | uMsg | 整数型 | wParam | 整数型 | lParam | 整数型 |
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | ||
| subproc | 整数型 | |||||
| maxwin | MINMAXINFO | |||||
如果真 (GetPropA (hwnd, “Cancel the limit”) = 1)
RemovePropA (hwnd, “Limit size”)
RemovePropA (hwnd, “Cancel the limit”)
RemovePropA (hwnd, “minimum width”)
RemovePropA (hwnd, “minimum height”)
RemovePropA (hwnd, “maximum width”)
RemovePropA (hwnd, “maximum height”)
SetWindowLongA (hwnd, -4, subproc)
返回 (0)
如果真 (uMsg = 36) ' WM_GETMINMAXINFO
CopyMemory_int2minmaxinfo (maxwin, lParam, 40)
maxwin.ptMinTrackSize.x = GetPropA (hwnd, “minimum width”)
maxwin.ptMinTrackSize.y = GetPropA (hwnd, “minimum height”)
maxwin.ptMaxTrackSize.x = GetPropA (hwnd, “maximum width”)
maxwin.ptMaxTrackSize.y = GetPropA (hwnd, “maximum height”)
CopyMemory_minmaxinfo2int (lParam, maxwin, 40)返回 (CallWindowProcA (subproc, hwnd, uMsg, wParam, lParam))
| DLL命令名 | 返回值类型 | 公开 | 备 注 | |
| CopyMemory_minmaxinfo2int | 整数型 | |||
| DLL库文件名: | ||||
| 在DLL库中对应命令名: | ||||
| RtlMoveMemory | ||||
| 参数名 | 类 型 | 传址 | 数组 | 备 注 |
| Destination | 整数型 | |||
| Source | MINMAXINFO | |||
| Length | 整数型 | |||
词条作者信息 使用例程
