Jump to content
PeterPanettone

Get menu window handle?

Recommended Posts

When I show a menu in Windows Notepad, this code gets me the handle of that menu window:

MenuWnd := FindWindowEx(0, 0, MAKEINTATOM($8000), nil);

  (which allows me to make a screenshot from that menu), for example:

 

image.png.02cea8d88c0e4992a422f7e39c94891c.png

 

But when I show a menu in the Delphi Code Editor, MenuWnd is 0!

 

Does anybody know how I can get the handle of the menu window from the Delphi code editor or in other similar cases?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×