1 <?xml version="1.0" encoding="utf-8"?>
5 Copyright (c) Microsoft Corporation. All rights reserved.
6 THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
7 ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
8 IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
9 PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
13 <CommandTable xmlns="http://schemas.microsoft.com/VisualStudio/2005-10-18/CommandTable" xmlns:xs="http://www.w3.org/2001/XMLSchema">
14 <!-- Definition of the command and menus used by this sample -->
15 <Extern href="stdidcmd.h" />
16 <Extern href="vsshlids.h" />
17 <Include href="KnownImageIds.vsct"/>
19 <!-- Commands definition for the client package -->
20 <Commands package="guidClientPkg">
22 <!-- A toolbar is a menu with itself as the "Relative to Group" and a "Type" of "ToolWindowToolbar" -->
23 <Menu guid="guidClientCmdSet" id="MyToolbar" priority="0x0000" type="ToolWindowToolbar">
24 <Parent guid="guidClientCmdSet" id="MyToolbar" />
26 <ButtonText>Window ToolBar</ButtonText>
31 <!-- On the toolbar (menu) we can have 1 or more group that will contain the buttons -->
32 <Group guid="guidClientCmdSet" id="MyToolbarGroup" priority="0x0500">
33 <Parent guid="guidClientCmdSet" id="MyToolbar" />
36 <!-- Buttons (commands) defined by the package.
37 This section defines the elements the user can interact with, like a menu command or a button
38 or combo box in a toolbar. -->
40 <!-- An element inside this section is defined by its ID and must specify a parent group, a display
41 priority, an image, a type, some visibility flags (optional) and a default text. -->
42 <Button guid="guidClientCmdSet" id="cmdidPersistedWindow" priority="0x100" type="Button">
43 <Parent guid="guidSHLMainMenu" id="IDG_VS_WNDO_OTRWNDWS1" />
44 <Icon guid="ImageCatalogGuid" id="OneX" />
45 <CommandFlag>IconIsMoniker</CommandFlag>
47 <ButtonText>&Persisted Window</ButtonText>
50 <Button guid="guidClientCmdSet" id="cmdidUiEventsWindow" priority="0x101" type="Button">
51 <Parent guid="guidSHLMainMenu" id="IDG_VS_WNDO_OTRWNDWS1" />
52 <Icon guid="ImageCatalogGuid" id="TwoX" />
53 <CommandFlag>IconIsMoniker</CommandFlag>
55 <ButtonText>&Dynamic Visibility Window</ButtonText>
58 <!-- The following command will appear on the tool window toolbar -->
59 <Button guid="guidClientCmdSet" id="cmdidRefreshWindowsList" priority="0x100" type="Button">
60 <Parent guid="guidClientCmdSet" id="MyToolbarGroup" />
61 <Icon guid="ImageCatalogGuid" id="Refresh" />
62 <CommandFlag>IconIsMoniker</CommandFlag>
64 <ButtonText>Refresh</ButtonText>
67 <!--The menu items will be placed in one of the first group of the View->Other Windows menu. To
68 find IDG_VS_WNDO_OTRWNDWS1 (which is the group ID), we searched ShellCmdPlace.ctc for Other
69 Windows from which we got the IDM_VS_CSCD_WINDOWS menu, and searching for that showed us
70 which groups were already part of that menu. Of those we picked IDG_VS_WNDO_OTRWNDWS1. -->
77 The definition of symbols in a VSCT file derives from the way the IDs of the elements are defined
78 by the command table. We have seen that the ID is a GUID/Number pair, where the GUID is also called
79 Command Set and it provides the context in which the numeric ID is evaluated.
80 It makes then sense for the VSCT schema to define the GuidSymbl tag as top level element containig
81 the definiton of the numeric IDs.
84 <!--The first GUID defined here is the one for the package. It does not contains numeric IDs.-->
85 <GuidSymbol name="guidClientPkg" value="{01069CDD-95CE-4620-AC21-DDFF6C57F012}" />
87 <!--The GUID for the command set is the one that contains the numeric IDs used in this sample
88 with the only exception of the one used for the bitmap.-->
89 <GuidSymbol name="guidClientCmdSet" value="{1227033A-2F60-4bd6-8208-B43EC8C12510}">
91 <IDSymbol name="MyToolbar" value="0x101" />
93 <IDSymbol name="MyToolbarGroup" value="0x1001" />
95 <IDSymbol name="cmdidPersistedWindow" value="0x2001" />
96 <IDSymbol name="cmdidUiEventsWindow" value="0x2002" />
97 <IDSymbol name="cmdidRefreshWindowsList" value="0x2003" />