X xihonghai Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-12 #1 如何屏蔽用鼠标点住标题拦拖动事件(让mdi窗口固定)?<br>想用重载 wndporc(message);的方法,却不知消息是什么?
D davidc Unregistered / Unconfirmed GUEST, unregistred user! 2000-08-12 #2 private<br> { Private declarations }<br> procedure WMNCHitTest(var Msg: TMessage); message WM_NCHITTEST;<br><br>procedure TPassword.WMNCHitTest(var Msg: TMessage);<br>begin<br> inherited; // 这样,移动就不可能了...<br> Msg.Result := HTCLIENT;<br>end;<br>
private<br> { Private declarations }<br> procedure WMNCHitTest(var Msg: TMessage); message WM_NCHITTEST;<br><br>procedure TPassword.WMNCHitTest(var Msg: TMessage);<br>begin<br> inherited; // 这样,移动就不可能了...<br> Msg.Result := HTCLIENT;<br>end;<br>