Middle button clicked
-
I have a dialog that owns a tree control. I want to catch a middle button down message in the dialog class. How can I do this ? I can catch the message in the tree control but I don't want this. Does anyone have an idea what can I do about this problem.:confused: Thanks Orcun Colak
-
I have a dialog that owns a tree control. I want to catch a middle button down message in the dialog class. How can I do this ? I can catch the message in the tree control but I don't want this. Does anyone have an idea what can I do about this problem.:confused: Thanks Orcun Colak
This should work.. Handle the PreTranslateMessage() Function in your dialog.. BOOL CMyDlg::PreTranslateMessage(MSG* pMsg) { if(pMsg->message == WM_MBUTTONDOWN) AfxMessageBox("Middle Button Pressed"); return CDialog::PreTranslateMessage(pMsg); } Rob Whoever said nothing's impossible never tried slamming a revolving door!