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

Access TSVN Shell Context Menu

From: stepand76 <stepand76_at_gmail.com>
Date: Wed, 30 Sep 2009 06:33:54 -0700 (PDT)

Hi *,

My task is to integrate TSVN command to our application. I'm playing
with the TSVN shell context menu. I'm using the
IContextMenu.QueryContextMenu method to access TSVN shell context menu
and then I'm browsing trough the returned menu. I also can execute the
commands (using IContextMenu.InvokeCommand). It works very well. But I
don't know how to recognise the individual items. Using
GetMenuItemInfo I can get:

type of the item
verb (depends on language, cannot be used)
help (depends on language, cannot be used)
id (not unique, cannot be used)

It would be great to add some custom data to MENUITEMINFO (MIIM_DATA)
to each menu item when creating the context menu. This data should
contain some unique id to recognise it in application.

Is it possible in future? Or is there another way to recognise that
menu items? Thank you.

PS: I know about tsvn-automation (http://tortoisesvn.net/docs/release/
TortoiseSVN_en/tsvn-automation.html) and also about TSVN COM
interface. But it doesn't allow to determine what items (commands) are
visible (enabled) for the set of selected files.


To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-09-30 15:55:50 CEST

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.