本文介绍了水平滚动触发两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谁能告诉我为什么,在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.
更多推荐
水平滚动触发两次
发布评论