2

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.

halfer
  • 19,824
  • 17
  • 99
  • 186
karthik
  • 17,453
  • 70
  • 78
  • 122

1 Answers1

3

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);
 }
Sathish Guru V
  • 1,417
  • 2
  • 15
  • 39
karthik
  • 17,453
  • 70
  • 78
  • 122