用ReleaseCapture后不能响应MouseUp

fzfei2 2012-01-10 11:21:43
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
SendMessage(Handle, WM_SYSCOMMAND, SC_MOVE + HTCAPTION, 0);
end;

procedure TForm1.FormMouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ShowMessage('UP');
end;
各位帮忙看看要怎么响应MouseUp
...全文
188 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
erhan 2012-01-10
  • 打赏
  • 举报
回复
不应该这样用啊
都是先SetCapture
处理完了,再ReleaseCapture
fzfei2 2012-01-10
  • 打赏
  • 举报
回复
有那位大侠知道?
自己顶一下

1,183

社区成员

发帖
与我相关
我的任务
社区描述
Delphi Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧