![]() |
Mouse buttons in C++
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.
|
Re: Mouse buttons in C++
WM_LBUTTONDOWN - see http://msdn.microsoft.com/en-us/library/ms645607.aspx
|
Re: Mouse buttons in C++
Thanks...is there a page where i can see an example on how to use these codes?
|
Re: Mouse buttons in C++
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.
|
| All times are GMT +5.5. The time now is 14:52. |