Toll Free: (877) 723-1442 U.S. and Canada
Support
ActiveX / COM
Visual C++ / MFC
Customer Spotlight
Corporate Partners
Contact Sales

Call center available M-F 9:00 - 6:00 US Eastern Time.

U.S. and Canada
(877) 723-1442

International
(517) 625-5729

Email

Special\Reserved Control IDs

Author: Mike Palmatier
Posted: October 21, 2005
Environment: Visual Basic 6.0

Using an ID of 35000 in a MDI application for a menu item will automatically add a menu item for up to 9 open documents. Clicking on one of the menu items will cause the document to come into focus.

Using an ID of 35001 for a button or menu item will cause the CommandBars Customization dialog to be displayed so that the toolbars and menu bar can be customized by the user.

Using an ID of 35002 for a menu item will automatically display a list of valid workspace actions that can be performed when using the TabWorkspace in a MDI application.

Using an ID of 59392 for a menu item will automatically display a list of all the toolbars so that they can be hidden or shown.

Below is how you would declare some constants for the reserved values.

     Const XTP_ID_WINDOWLIST = 35000

     Const XTP_ID_CUSTOMIZE = 35001

     Const XTP_ID_WORKSPACE_ACTIONS = 35002

     Const XTP_ID_TOOLBARLIST = 59392

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Other products and/or company names may be trademarks or registered trademarks of their respective owners.