Home All Groups Group Topic Archive Search About

More than 1 toolwindow in the same VSPackage

Author
7 Mar 2006 3:38 PM
Vin
Hi,

The VS.Net 2005 provides easy way to create a Toolwindow through its
new project wizard. Excellent. It auto generates whole lot of files and
code in it.

Wait a minute, is there an option to add one more toolwindow to this
package of yours? Just like add new item? No.

Can someone tell me how to do this? I want to add one more toolwindow
apart from the one created by the wizard to the same VSPackage project.
And I want it to appear in Tools menu when the VS exp hive is run.

I tried a few things.
1. Created a new vspackage toolwindow, copied the guids pkgcmdidlist
etc.
in the VsPkg.cs file's class's initialize method added this
PkgCmdIDList
2. Added one more row in the .ctc file for the new toolwindow in
BUTTONS section
3. Added #define cmdidNewToolWindow 0x101 in pkgCmdId.h file

None of the above worked.

I appreciate your help.

Thanks,
Vin

AddThis Social Bookmark Button