Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 18 Aug 2008 12:27:26 -0700 (PDT),    group: microsoft.public.inetsdk.programming.webbrowser_ctl        back       


IOleCommandTarget Exec is called invoked but QueryStatus is not   
Hi,

Using Debug symbols I was able to determine that (in IE7) before Edit
menu is displayed CDoc::QueryStatus is invoked for Copy, Paste and few
other commands in order to Enable/Disable menu items. I am trying to
provide my own implementation of IOleCommandTarget using SetClientSite
(I have tried also SetUIHandler). Whatever I am using it is not being
invoked. Strangely enough my Exec method is being invoked when I click
on Edit's Copy menu item.

I have a feeling that I am setting IOleCommandTarget/UIHandler at
wrong place of the objects hierarchy. The question what is the right
place?

Thank you.
date: Mon, 18 Aug 2008 12:27:26 -0700 (PDT)   author:   unknown

Re: IOleCommandTarget Exec is called invoked but QueryStatus is not   
On Aug 18, 3:27 pm, john55...@gmail.com wrote:
> Hi,
>
> Using Debug symbols I was able to determine that (in IE7) before Edit
> menu is displayed CDoc::QueryStatus is invoked for Copy, Paste and few
> other commands in order to Enable/Disable menu items. I am trying to
> provide my own implementation of IOleCommandTarget using SetClientSite
> (I have tried also SetUIHandler). Whatever I am using it is not being
> invoked. Strangely enough my Exec method is being invoked when I click
> on Edit's Copy menu item.
>
> I have a feeling that I am setting IOleCommandTarget/UIHandler at
> wrong place of the objects hierarchy. The question what is the right
> place?
>
> Thank you.

I have debugged little bit more. It looks like Document's
IOleCommandTarget::QueryStatus is invoked directly and there are no
extensibility hooks (like ClientSite) are invoked. It is a pitty. No
wonder that CodeProject's "Extended .NET 2.0 WebBrowser Control" is
using .NET's AxHost AttachInterfaces to wrap around Doc object. Oh,
well I have to hack again (probably replace an entry in vtable)
date: Tue, 19 Aug 2008 13:50:57 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us