Solved

SendMessage to 3rd Party Application's Menu

Posted on 2006-10-22
2
198 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

864 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

25 Experts available now in Live!

Get 1:1 Help Now