窗口的拖动滑动条出发什么事件?

ttxm 2003-01-03 11:52:42
rt
...全文
24 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
diruser 2003-01-03
  • 打赏
  • 举报
回复
楼上的
laihecongxi 2003-01-03
  • 打赏
  • 举报
回复
private
procedure WndProc(var message: Tmessage);override;
.....

procedure TfrmIntro.WndProc(var message: Tmessage);
begin

if (message.Msg = WM_VSCROLL) and (message.WParamLo = SB_ENDSCROLL) then
showmessage('竖')
else
if (message.Msg = WM_HSCROLL) and (message.WParamLo = SB_ENDSCROLL) then
showmessage('横')
else
inherited WndProc(message);
end;
ccc_wh 2003-01-03
  • 打赏
  • 举报
回复
WM_VSCROLL :上下移动
WM_HSCROLL :左右移动
ttxm 2003-01-03
  • 打赏
  • 举报
回复
感谢各位!都很正确!加分!!!

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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