Can't get menu items from IE or Explorer (GetMenuItemCount returns
From: Leo (Leo_at_discussions.microsoft.com)
Date: 08/30/04
- Next message: r_z_aret_at_pen_fact.com: "Re: How to increase the size of all common controls in a dialog"
- Previous message: Sigurd Stenersen: "Re: How to increase the size of all common controls in a dialog"
- Next in thread: Tim Robinson: "Re: Can't get menu items from IE or Explorer (GetMenuItemCount returns"
- Reply: Tim Robinson: "Re: Can't get menu items from IE or Explorer (GetMenuItemCount returns"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 30 Aug 2004 10:41:02 -0700
I am using the Win32 API function GetMenu to get the menu handle for the menu
bar in IE or Windows Explorer. Apparently, GetMenu is indeed returning the
correct menu handle value (I used Spy++ to verify if the menu handle was
correct). However, if I then use GetMenuItemCount with the hMenu returned by
GetMenu, I get a returned value of zero. GetMenuItemCount should return -1 if
failure, or the number or menu items if successful. Why is it that
GetMenuItemCount returns 0 when there are in fact 6 menu items in IE’s menu
bar? Is there a workaround for this?
I’ve tried this with other apps such as calc, notepad, etc and it works fine
with these. It only does not work with IE or Windows Explorer.
Is there any other way I can access these menu items (and get their resource
ID)?
Thanks,
Leo
- Next message: r_z_aret_at_pen_fact.com: "Re: How to increase the size of all common controls in a dialog"
- Previous message: Sigurd Stenersen: "Re: How to increase the size of all common controls in a dialog"
- Next in thread: Tim Robinson: "Re: Can't get menu items from IE or Explorer (GetMenuItemCount returns"
- Reply: Tim Robinson: "Re: Can't get menu items from IE or Explorer (GetMenuItemCount returns"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|