高手来讲课拿分:移动无标题窗体代码
Procedure TFommain.wmnchitTest(Var M: TWMNCHitTest);
Begin
Inherited;
If M.Result = htclient Then
Begin
M.Result := HTCAPTION;
End;
end;
//这样能实现移动无标题窗体
Procedure TFommain.wmnchitTest(Var M: TWMNCHitTest);
Begin
If M.Result = htclient Then
Begin
M.Result := HTCAPTION;
end;
Inherited; //这样不能实现移动无标题窗体,为什么?
End;
这两种方式,对消息的处理有何不同?