[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Contextmenu GCS_VERBA requested

From: Hendrik Wiese <mailinglist_at_syncro-community.de>
Date: 2005-11-15 10:28:27 CET

Stefan Küng wrote:

> Hendrik Wiese wrote:
>
>> And so it is. An essential part of our software - not really an
>> Explorer replacement but a GUI that implements and immitates parts of
>> the Explorer - indeed requires verbs provided by the shell extension
>> of TortoiseSVN (and others). Maybe you are right and our program is
>> broken here. But how else is it done, not using verbs?
>
>
> You'd have to tell me first how is *what* done without verbs, then
> maybe I can help you.
>
> If you want to execute the menu items, call InvokeCommand with the
> menu ID, that will work much better than with verbs.
>
> Stefan
>
I think, I have to start over from another direction... whoo... it's
complicated... One step of our code tries to retrieve the text of the
menu item by calling a function called "CMenu::GetMenuString". For all
TortoiseSVN items but the one for the popup menu, the strings returned
by this function are empty.

Another step of our code tries to retrieve the menu state by a function
called "CMenu::GetMenuState". The state returned is MF_OWNERDRAW
(MF_APPEND) but we don't know how to draw this item. We would draw it by
ourselves if we had got a valid item text from GetMenuString.

In just another step of our code we try to append the whole TortoiseSVN
popup menu to our menu by calling "CMenu::AppendMenu" with the handle
returned by an earlier call of "CMenu::Detach()". The handle returned by
Detach seems to be valid, but it appears to be unknown by the system
since trying to pop the menu up in the GUI results in an ASSERT_VALID
forcing our software to exit. Maybe this is depending on the OWNERDRAW
state.

Please excuse my english, I hope you are able to understand what I'm
talking about... The least we need is a valid menu text returned by
CMenu::GetMenuString or by IContextMenu::GetCommandString that will be
displayed to the user and valid handles for the popupmenuitems returned
by CMenu::Detach().

I would be very grateful for any kind of help. Thanks a lot.

Kind regards

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Nov 15 10:30:09 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.