Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 2nd, 2006, 03:28 PM
Registered User
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help needed for Windows Hooks (Global Mouse Hooks)

I have two addins installed in my Outlook 2003, both have their specific functionality, I would like to integrate the functionality of both thru global mouse hooks, here is my senerio

1) Lets say there is a button "abc" on toolbar "A" in outlook mail composing window
2) and there is a button "xyz" on toolbar "X" in the same mail composing window
3) on click of button "abc", I would like to generate click of button "xyz" first
4) and then resume back to the process of button "abc"

I am thinking of developing application using VC++ and creating global mouse hooks (may be there is some better approach), I know I can capture the mouse click but my questions are

1) how do I know that the click that was captured is for "abc" button....I think I'll have to determine if the click was for OUTLOOK main window and then determine which mail composing window the click was for, and then finally determine which toolbar/button was it for........but how do I do this all ? any ideas/pointers/suggestions

2) Once I know that the click was for button "abc" now second step is, how do I push a new click event in the windows queue for button "xyz" in toolbar "X"

Also one thing to note is, there may be multiple mail composing windows open but we got to work on the active one only which initiated the click event in question.

Thanks in advance.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting "Hooks.pm not found" error jromeirojr Perl 1 May 28th, 2007 06:39 AM
Kernel Hooks J-Rod Need help with your homework? 0 August 30th, 2006 02:21 AM
global mouse hook G_Zola General .NET 2 May 15th, 2005 08:11 PM

All times are GMT -4. The time now is 01:04 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.