Hi,
I developed a vsip package (project-language-editor) and I would like to
start VS.NET IDE using CoCreateInstance->DTE in so called -embedding mode
from an external application (host) almost like VS Macro Environment.
Before I display the IDE, I create/open a solution/project from the app-host
using DTE automation and I would like to disable the menu commands for
new/close solution/ project. I still need the Add New Items command/dialog
etc. I also need the Exit disabled; my app-host will exit the IDE using DTE.
Thank you
JD
thomas - 23 Dec 2004 10:27 GMT
Just implement the interface IOleCommandTarget and register it as
priority command target. Make sure that the Exec and especially the
QueryStatus functions return the right value, otherwise you'll disable
all commands in VS (you'll figure out what I mean :-)). You'll find the
command id's for create/open a solution... in the ctc files contained in
the vsip sdk.
Hope this helps,
Thomas
> Hi,
> I developed a vsip package (project-language-editor) and I would like to
[quoted text clipped - 8 lines]
> Thank you
> JD