Mouse buttons in C++
|
Go4Expert Member
|
|
| 12Aug2008,00:24 | #1 |
|
Is there a way that when you click a mouse button, it can send info to a notepad file. Or even better, a code in C++ that can program a button to do something or receive info from a button in the mouse. Please help.
|
|
Mentor
|
![]() |
| 12Aug2008,12:37 | #2 |
|
WM_LBUTTONDOWN - see http://msdn.microsoft.com/en-us/library/ms645607.aspx
|
|
Go4Expert Member
|
|
| 12Aug2008,20:58 | #3 |
|
Thanks...is there a page where i can see an example on how to use these codes?
|
|
Mentor
|
![]() |
| 13Aug2008,12:42 | #4 |
|
If you have a Windows program then just add case WM_LBUTTONDOWN to your main window procedure. But if you're just starting out with Windows programming (as suggested by the fact that you don't know where to put WM_LBUTTONDOWN), you need to check out the Petzold book, that will get you started. Petzold is *THE* Windows programming reference/starter.
|

