SendMessage and Menus

  • Thread starter Thread starter Pete Kane
  • Start date Start date
P

Pete Kane

Hi All, does anyone know of a way to retrieve the ID of a menu ? I've
tried using Winspector but can't seem to track down menus, buttons and
other controls easy peasy, thanks
 
Pete,

The only thing I can think of would be to pass the handle to
GetDlgCtrlID. However, for a menu, I don't know that it will work. For
regular windows controls, it should give you the identifer, if there is one.
 
Nicholas said:
Pete,

The only thing I can think of would be to pass the handle to
GetDlgCtrlID. However, for a menu, I don't know that it will work. For
regular windows controls, it should give you the identifer, if there is one.
Thanks Nicholas, I'm sure that would work if I knew the handle of the
menu (Catch 22) keep em coming

Regards

Pete Kane
 
Pete,

If you don't have the handle to the window, then the only options you
have are calling FindWindow, FindWindowEx and/or EnumWindows and checking
the properties of the window handles returned to you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top