Discussion:
EXPLORER Menu Problem
(too old to reply)
mehmet
2006-03-17 10:43:26 UTC
Permalink
Hi Everybody,
I am using the following code block with win32 api to access the IE menu
items.
1) EnumWindows (to get all desktop window handles)
2) GetClassName ( to get Explorer class id which is IEFrame )
3)GetMenu (to get menu handle of Explorer )
4)GetMenuItemCount (to get menu item number of Explorer. Returns 0)
5)GetSubMenu (to get sub menu handle of Explorer )
6)GetMenuItemCount (to get sub menu item number of Explorer. Returns
4294967295)

I tested I am getting wright IE windows handle.
What is wrong with these code block ?
Also when I send SENDMESSAGE with wm_close to IE handle, it does not
respond. But when I send SENDMESSAGE with wm_destroy IE tries to close but
giving error message.
How can I control IE ?
Any help wellcome
Vladimir Scherbina
2006-03-17 12:29:12 UTC
Permalink
mehmet,

I guess such type of a question is better to ask on
microsoft.public.win32.programmer.kernel NG.
--
Vladimir
http://spaces.msn.com/vladimir-scherbina/
Post by mehmet
Hi Everybody,
I am using the following code block with win32 api to access the IE menu
items.
1) EnumWindows (to get all desktop window handles)
2) GetClassName ( to get Explorer class id which is IEFrame )
3)GetMenu (to get menu handle of Explorer )
4)GetMenuItemCount (to get menu item number of Explorer. Returns 0)
5)GetSubMenu (to get sub menu handle of Explorer )
6)GetMenuItemCount (to get sub menu item number of Explorer. Returns
4294967295)
I tested I am getting wright IE windows handle.
What is wrong with these code block ?
Also when I send SENDMESSAGE with wm_close to IE handle, it does not
respond. But when I send SENDMESSAGE with wm_destroy IE tries to close but
giving error message.
How can I control IE ?
Any help wellcome
Loading...