Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 41
  • Last Modified:

How to programmatically close the main menu of another application.

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
festijazz
Asked:
festijazz
1 Solution
 
chaauCommented:
Send [Esc] via SendKey to the main window.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now