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.
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
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
I would be very grateful for any kind of help. Thanks a lot.
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Tue Nov 15 10:30:09 2005