本文介绍了有没有办法让单选按钮双击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我要处理单选按钮双击..
我在Pretranslate中通过检查控件ID做到了这一点.
然后,我尝试了包含单选按钮属性的方法,但在这种情况下我没有任何结果.
hello,
i want to handle radio button double click..
i did this in Pretranslate by checking id of control.
then, i tried for the method which is included throw Radio button Property but i can''t get any result in this case.
void CdemoDlg::OnBnDoubleclickedRadio2()
{
MessageBox("DBCLICK");
// TODO: Add your control notification handler code here
}
这没用..
实际上我想在用户双击单选按钮时模仿确定"按钮.
我想知道缺少了什么??
this didn''t work..
Actually i want to mimic ''OK'' button when user double click radio button.
i want to know what is missing???
thanks.
推荐答案
__int64 radioClickTime = (__int64)GetTickCount();
void CdemoDlg::OnClickedRadio2()
{
__int64 tempRadioClickTime = (__int64)GetTickCount();
if((tempRadioClickTime - radioClickTime) < 300)
{
/* double clicked */
}
radioClickTime = tempRadioClickTime
}
祝你好运!
Good luck!
这篇关于有没有办法让单选按钮双击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!