|
|
|
date: Mon, 30 Jun 2008 02:17:51 -0700 (PDT),
group: microsoft.public.platformsdk.shell
back
Re: InvokeCommand (LPCMINVOKECOMMANDINFO lpcmi->verb) returns lesser
value by 9
On Jun 30, 2:44 pm, "Jim Barry" wrote:
> Anu wrote:
> > I am facing a really strange issue. I have a context menu and a
> > submenu to this context menu added using InsertMenu method.
> > In my NSE, in the right view of explorer, if i do right click on an
> > item and select a submenu, the value returned by lpcmi->verb is
> > correct, but if i Do same thing on the left view on the same item, it
> > always returns a value less by 9 of cmd id.
>
> In each case, what is the value of the idCmdFirst parameter of QueryContextMenu?
>
> --
> Jim Barry, Microsoft MVP
Jim, thanks for the reply.
When clicked on LHS View - Value is 10
call stack is (the call to Querycontextmenu is not from application in
this case)
appsll::CShellVIew::Querycontextmenu(.....)
shdocvw.dll
appdll.ContextMenu::QueryInterface(....)
When clicked on RHS - value is 1 (as this is called from app, the
value is passed as 1, do I need to changes it?)
call stack is for this case is
--
hCtxMenu=::CreatePopupMenu();
pCtxtMenu->QueryContextMenu(hCtxMenu, 1, 1, 0x7FFF, CMF_EXPLORE); //
my app call explicitly..here the value passed as 1
appsll::CShellVIew: nContextMenu()
appsll::CShellVIew::WndProc(,,.....)
rgds,
anu
date: Tue, 1 Jul 2008 00:47:03 -0700 (PDT)
author: Anu
Re: InvokeCommand (LPCMINVOKECOMMANDINFO lpcmi->verb) returns lesser
value by 9
On Jul 1, 12:47 pm, Anu wrote:
> On Jun 30, 2:44 pm, "Jim Barry" wrote:
>
> > Anu wrote:
> > > I am facing a really strange issue. I have a context menu and a
> > > submenu to this context menu added using InsertMenu method.
> > > In my NSE, in the right view of explorer, if i do right click on an
> > > item and select a submenu, the value returned by lpcmi->verb is
> > > correct, but if i Do same thing on the left view on the same item, it
> > > always returns a value less by 9 of cmd id.
>
> > In each case, what is the value of the idCmdFirst parameter of QueryContextMenu?
>
> > --
> > Jim Barry, Microsoft MVP
>
> Jim, thanks for the reply.
>
> When clicked on LHS View - Value is 10
> call stack is (the call to Querycontextmenu is not from application in
> this case)
> appsll::CShellVIew::Querycontextmenu(.....)
> shdocvw.dll
> appdll.ContextMenu::QueryInterface(....)
>
> When clicked on RHS - value is 1 (as this is called from app, the
> value is passed as 1, do I need to changes it?)
> call stack is for this case is
> --
> hCtxMenu=::CreatePopupMenu();
> pCtxtMenu->QueryContextMenu(hCtxMenu, 1, 1, 0x7FFF, CMF_EXPLORE); //
> my app call explicitly..here the value passed as 1
> appsll::CShellVIew: nContextMenu()
> appsll::CShellVIew::WndProc(,,.....)
>
> rgds,
> anu
i also changed the call and instead of 1, i am passing 10 now, in this
case value of idCmdFirst is 10 for both the cases and the difference
is still 0 for the LHS lpcmi->verb
date: Tue, 1 Jul 2008 01:05:07 -0700 (PDT)
author: Anu
|
|