处理按钮的OnPressed事件 [英] Handle OnPressed event for a Button

查看:553
本文介绍了处理按钮的OnPressed事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我试图在对话框中捕获Button控件的OnPressed事件。我知道我们有一个OnClick事件,但我如何操纵它来处理OnPressed事件?

这个问题可能以前已经回答过但我自己找不到答案。如果是这样,你能否请我重新定向到那个答案?

Hello,

I am trying to capture the OnPressed event for a Button control in a dialog box. I am aware of the fact that we have an OnClick event but how do I manipulate this to handle an OnPressed event?
This question may have been answered before but I could not find an answer to it myself. If so, could you please redirect me to that answer?

推荐答案

有类似 OnPressed事件,它调用: MouseDown事件



CWnd :: OnLButtonDown [ ^ ]

CWnd::OnMButtonDown [ ^ ]

CWnd :: OnRButtonDown [ ^ ]
There is something like OnPressed event, it calls: MouseDown event.

CWnd::OnLButtonDown[^]
CWnd::OnMButtonDown[^]
CWnd::OnRButtonDown[^]


这篇关于处理按钮的OnPressed事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆