Solved

SendMessage to 3rd Party Application's Menu

Posted on 2006-10-22
2
203 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
ID: 17794015
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
ID: 17801168
Thanks Rajeev.. i found the answer myself.. but still thanks for your time.. ill accept your effort
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

820 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