Solved

SendMessage to 3rd Party Application's Menu

Posted on 2006-10-22
2
196 Views
Last Modified: 2010-05-18
Hi Experts.. can anyone please guide me with a example of simulating a key stroke (Ctrl + M) in another application.
iam able to control the 3rd party application's buttons, checkbox... etc other than Menu.. iam having praoblem getting access to menus from my programm...

 ----------------                        ----------------------
|                   |                       |    3rd Party App
| my APP       | ---------------> | Menu
|                   |                       |
----------------                         ---------------------

Can anyone please tell me as soon as possible

0
Comment
Question by:GouthamRDodda
2 Comments
 
LVL 12

Accepted Solution

by:
rajeev_devin earned 250 total points
Comment Utility
You need to send WM_MENUSELECT message to the owner window.

Check this for help:
http://windowssdk.msdn.microsoft.com/en-us/library/ms646352.aspx
http://tols17.oulu.fi/~vtatila/ohjy/english/ohjy38.html
0
 

Author Comment

by:GouthamRDodda
Comment Utility
Thanks Rajeev.. i found the answer myself.. but still thanks for your time.. ill accept your effort
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

744 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

8 Experts available now in Live!

Get 1:1 Help Now