July 16th, 1999, 07:59 PM
Hi,
I want to hook every mouse l-click...
I'm using MS-VC++ 5.0. (MFC)
Please, help me.
Thanks!
I want to hook every mouse l-click...
I'm using MS-VC++ 5.0. (MFC)
Please, help me.
Thanks!
|
Click to See Complete Forum and Search --> : mouse click July 16th, 1999, 07:59 PM Hi, I want to hook every mouse l-click... I'm using MS-VC++ 5.0. (MFC) Please, help me. Thanks! Peter Sedik July 17th, 1999, 10:03 AM Let's assume you have created the application skeleton using classwizard and your project is loaded in workspace. Run classwizard by typing CTRL-W. Switch to the leftmost tab "Message Maps" In the "Class name" combobox, select the window class for which you want to capture the click. In the "Object IDs" listview, scroll to the bottom line, there will be name of the class you have selected in the combobox. Select it. In the "messages" listview click on the message WM_LBUTTONDOWN. Click on the button "Add function", then click on "Edit code". You will be transfered into function which will be called everytime the user click the left mouse button over your window. Place your code there. Peter. July 17th, 1999, 05:42 PM I need it for all windows: a system hook... balak yap July 18th, 1999, 02:45 AM then just type "hooks" or "hook" in codeguru search section, you get what you want Hello World!!! codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |