Solved

Detecting events on controls

Posted on 2002-06-07
3
541 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now