B
bevy
Unregistered / Unconfirmed
GUEST, unregistred user!
使用了API的消息,程序如下:
procedure TForm1.WMNCHitTest(var M: TWMNCHitTest);
begin
inherited;
{ call the inherited message handler }
if M.Result = htClient then
{ is the click in the client area? }
M.Result := htCaption;
{ if so, make Windows think it's }
{ on the caption bar. }
end;
现在的问题是:好像窗体不能相应任何鼠标移动和点击了,比如我想设定点击窗体的
某一块位置后,窗体就关闭,但是窗体感应不到mousedown这个事件了,请问怎么办?
谢谢
procedure TForm1.WMNCHitTest(var M: TWMNCHitTest);
begin
inherited;
{ call the inherited message handler }
if M.Result = htClient then
{ is the click in the client area? }
M.Result := htCaption;
{ if so, make Windows think it's }
{ on the caption bar. }
end;
现在的问题是:好像窗体不能相应任何鼠标移动和点击了,比如我想设定点击窗体的
某一块位置后,窗体就关闭,但是窗体感应不到mousedown这个事件了,请问怎么办?
谢谢