Solved

Detecting events on controls

Posted on 2002-06-07
3
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: 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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

738 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