开发者

How can identify Mouse Click event in PreTranslateMessage?

开发者 https://www.devze.com 2023-04-04 13:02 出处:网络
I want identify all mouse click event in PreTranslateMessage, but when I use WM_LBUTTONDOWN than WM_LBUTTONDBLCLK portion never called开发者_开发知识库. Please tell me how can I identify all events se

I want identify all mouse click event in PreTranslateMessage, but when I use WM_LBUTTONDOWN than WM_LBUTTONDBLCLK portion never called开发者_开发知识库. Please tell me how can I identify all events separately.


This code will get the mouse click events in PreTranslateMessage

 BOOL CSampleDlg::PreTranslateMessage(MSG* pMsg)
 {
    if(pMsg->message == WM_LBUTTONDOWN)
    {
      //add ur customized code here...
      return false;
    }
    return CDHtmlDialog::preTranslateMessage(pMsg);
 }
0

精彩评论

暂无评论...
验证码 换一张
取 消