水平滚动触发两次

编程入门 行业动态 更新时间:2024-10-24 22:26:53
本文介绍了水平滚动触发两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

谁能告诉我为什么,在mfc应用程序中,OnHScroll会触发两次.我使用向导创建了一个应用程序,并将跟踪语句放入OnHSScroll事件中.当我单击滚动按钮时,它将触发两次.如果移动拇指轨道,我会理解多次发射. 我这样做的原因是我注意到它在我的应用程序中触发了两次,所以我创建了一个测试应用程序以查看是否做错了什么.开箱即用.那不正常.

Can anyone tell me why, in an mfc application would the OnHScroll fire twice. I created an app using the wizard and put a trace statement in the OnHSScroll event. It fires twice when I click the scroll button. I would understand multiple firings if I moved the thumbtrack. The reason why I did this is I was noticing it was firing twice in my application so I created a test application to see if I had done something wrong. It does it right out of the box. That can''t be normal. Any help would be appreciated.

推荐答案

TRACE(水平滚动触发\ n"); 认真地,将一个应用程序放入其中.单击水平滚动按钮.它会触发两次. TRACE ("Horizontal Scroll firing\n"); Seriously, take an application, put that code in it. Click on the horizontal scroll button. It fires twice.

更多推荐

水平滚动触发两次

本文发布于:2023-11-27 13:00:19,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638183.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两次   水平

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!