1. 我们需要申明以下几个API函数:
Function long SetWindowLongA(ulong hWnd, int nIndex, long dwNewLong) library "user32"
Function long GetWindowLongA(ulong hWnd, int nIndex) library "user32"
2. 建立一个Response类型的窗口, 记住: ControlMenu属性必须为False.
3. 在窗口的Open事件里:
constant long GWL_STYLE = -16
constant long WS_SYSMENU = 524288
constant long WS_THICKFRAME = 262144
long dwStyle
dwStyle = GetWindowLongA(Handle(this), GWL_STYLE)
SetWindowLongA(Handle(this), GWL_STYLE, dwStyle + WS_THICKFRAME + WS_SYSMENU)
本文地址:http://com.8s8s.com/it/it21158.htm