上下文帮助处理问题 [英] Context Help handling problem
问题描述
我试图在对话框上使用上下文帮助来显示我的应用程序关于Box".
我发现处理帮助"按钮按下的唯一方法是捕获WM_NCLBUTTONDOWN消息.我遇到的问题是,一旦我得到ABout框,就按下按钮,而第二次按下时,鼠标光标上会出现一个帮助图标.然后,如果我再次按下该按钮,则会出现关于"框.
首先,我是否使用了正确的消息处理程序(我怀疑没有),其次,如果我使用了正确的处理程序,如何避免需要两次按下按钮才能获得单片印刷机的正确功能,即关于".每次按下按钮都会出现一个框?
TIA
Tony
Hi,
I''m trying to use the Context Help on my dialog to display my application About Box.
The only way I have found to handle the press of the Help button is to catch the WM_NCLBUTTONDOWN message. The problem that I am seeing with this if I press the button once I get my ABout box, when I press it the second time I get a little help icon appear on my mouse cursor. Then if I press the button again my About box appears.
Firstly, am I using the correct message handler (and I suspect not), and secondly, if I am using the correct handler, how can I prevent needing to press the button twice to get the correct functionality of a singel press, i.e. the About box appears every time that I press the button?
TIA
Tony
推荐答案
问题已解决,
我已经在函数的底部保留了默认的CDialog :: OnNcLButtonDown()处理函数,这需要进一步的处理.
删除该调用,该功能就像螺母一样工作.
托尼
Problem solved,
I had left the default CDialog::OnNcLButtonDown() handler at teh bottom of the function, and it was requiring further handling.
Remove the call and the function works sweet as as nut.
Tony
这篇关于上下文帮助处理问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!