Solved

Detecting events on controls

Posted on 2002-06-07
3
549 Views
Last Modified: 2013-11-20
Hi,

I want to monitor when a user click on a button which I have the handle. I am presently using NetMeeting and since the SDK is limited, i want to monitor certain kind of events.

I already installed function calls with SendMessage to obtain the value of a TrackBar (msctls_trackbar32) and CheckBox (Button) with BST_CHECKED, TBM_GETPOS to control those controls. But how to monitor them? Something that will be great is to add a functions that will be call when something will happen with those controls.

Maybe there is a way to do that with the SDK? In this case, I am interested to read what you have to say about it.

Thanks!
0
Comment
Question by:teknee
  • 2
3 Comments
 
LVL 12

Expert Comment

by:migel
ID: 7064007
Hi!
You have to install Windows HOOK to monitor input activity.
for your WH_MOUSE and WH_KEYBOARD hooks required.
See MSDN example how to use hooks.
0
 

Author Comment

by:teknee
ID: 7066033
Hi Migel,

Thank you for ansering but I am searching for something more precise. Do you know where I can find examples exactly?

Thanks!

Tek
0
 
LVL 12

Accepted Solution

by:
migel earned 200 total points
ID: 7066298
Hi!
There is no example exactly what you want.
So You need read MSDN about HOOKs and look to MSDN example program.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Expand LInux Boot partition remotly 3 96
Shell script to login to remote m/c and execute commands 10 78
lucky13 challenge 11 153
Path of Workbook 3 86
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question