Solved

How to programmatically close the main menu of another application.

Posted on 2016-09-05
2
14 Views
Last Modified: 2016-10-23
Hello Everyone.

I would like to see if there would be a way to close via another application the main menu open in my application.

Let's say you have:
ClosingMenu.pngI have tried to apply a SetFocus on the mainframe or a WM_EXITMENULOOP message but no luck currently.
I even have applied a refreshwindow but the main menu resides open.

What could be the magic event to close the menu from another application?
Thank you very much in advance.
Best regards.
MiQi.
0
Comment
Question by:festijazz
2 Comments
 
LVL 24

Accepted Solution

by:
chaau earned 500 total points
ID: 41785537
Send [Esc] via SendKey to the main window.
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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

14 Experts available now in Live!

Get 1:1 Help Now