Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Mar : EXPLORER Menu Problem

www.cryer.info
Managed Newsgroup Archive

EXPLORER Menu Problem

Subject:EXPLORER Menu Problem
Posted by:"mehmet" (mehm..@discussions.microsoft.com)
Date:Fri, 17 Mar 2006 02:43:26

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

Replies:

www.cryer.info
Managed Newsgroup Archive