I think it could be done from a macro or addin.
The DTE object has a MainWindow property (the IDE window) which in turn has
Caption and hwnd (hidden) properties. I don´t think that you will be able to
change the Caption property without exceptions, but you should be able to do
it with the handle and a call to SetCaption Win32 API.
From a macro you have the DTE object directly:
MsgBox(DTE.MainWindow.Caption)
But a more start approach is an addin configured to load on start that sets
the IDE caption to the project version or similar. From an addin, you need
to cast the first parameter to OnConnection to a EnvDTE object.
Note: since the IDE caption varies, I don´t know how much time your change
will remain. Maybe the addin must keep track of document activations and so
on to re-enforce your changes.
--
Carlos J. Quintero (Visual Developer - .NET MVP)
FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)
"Jay Allard" <jay@allardworks.com> escribió en el mensaje
news:4610625.0404211230.55709064@posting.google.com...
[quoted text, click to view] > Hello
>
> Due to versioning via Star Team, I often have 2 or 3 instances of
> Visual Studio open, each with the same solution file name loaded. The
> title bar, and the task bar, shows "MyProject" for all 3.
>
> Is it possible to manipulate the title bar via a macro or something?
> It would be nice to prepend it with some type of indicator.
>
> Or, if that can't be done, any quick-and-dirty suggestions for adding
> a tell-tale sign on a tool bar, perhaps? That way I could tell just by
> looking at the IDE. As is, I have to look at the properties of one of
> the files.
>
> Another idea I considered is an external program that monitors the
> open instances of visual studio and provides a task list of which to
> switch to. I don't know if it's feasible for the program to figure out
> which solution is loaded, but even if it is, that sounds like more of
> a production than I was hoping for.
>
> Any suggestions?
>
> Thank you