Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detecting events on controls

Posted on 2002-06-07
3
Medium Priority
?
564 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 600 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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.

782 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