Share via


MSOffice2007Demo Sample: MFC Office Application

The MSOffice2007Demo sample demonstrates how to implement an editor application similar to an Office 2007 application, with similar user interface elements and limited similar capabilities. The MSOffice2007Demo sample implements a very full ribbon user interface much like an Office 2007 application, and some (but not all) of the ribbon elements are connected to capabilities in the application.

Security noteSecurity Note

This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown. We recommend that you add security and error-handling code to make your projects more secure and robust. Microsoft provides this sample code "AS IS" with no warranties.

To get samples and instructions for installing them:

To access samples from Visual Studio

  • On the Help menu, click Samples.

    By default, these samples are installed in drive:\Program Files\Microsoft Visual Studio 10.0\Samples\.

  • For the most recent version of this sample and a list of other samples, see Visual Studio Samples on the MSDN Web site.

Building and Running the Sample

To build and run the MSOffice2007Demo sample

  1. Open the solution file MSOffice2007Demo.sln.

  2. Select the appropriate solution platform and configuration.

  3. On the Build menu, click Build.

  4. On the Debug menu, click Start Debugging or Start Without Debugging.

Keywords

The MSOffice2007Demo sample demonstrates the following keywords:

CDrawingManager; CFrameWndEx; CMDIFrameWndEx; CMenuImages; CMFCCaptionBar; CMFCControlRenderer; CMFCControlRendererInfo; CMFCFontInfo; CMFCPopupMenu; CMFCPopupMenuBar; CMFCPropertyPage; CMFCPropertySheet; CMFCRibbonApplicationButton; CMFCRibbonBar; CMFCRibbonBaseElement; CMFCRibbonButton; CMFCRibbonButtonsGroup; CMFCRibbonCategory; CMFCRibbonCheckBox; CMFCRibbonColorButton; CMFCRibbonComboBox; CMFCRibbonCustomizePropertyPage; CMFCRibbonEdit; CMFCRibbonFontComboBox; CMFCRibbonGallery; CMFCRibbonGalleryIcon; CMFCRibbonGalleryMenuButton; CMFCRibbonLabel; CMFCRibbonLinkCtrl; CMFCRibbonMainPanel; CMFCRibbonMainPanelButton; CMFCRibbonMiniToolBar; CMFCRibbonPanel; CMFCRibbonPanelMenuBar; CMFCRibbonProgressBar; CMFCRibbonQuickAccessToolBarDefaultState; CMFCRibbonSeparator; CMFCRibbonSlider; CMFCRibbonStatusBar; CMFCRibbonStatusBarPane; CMFCRibbonUndoButton; CMFCTasksPane; CMFCToolBar; CMFCToolBarButton; CMFCToolBarImages; CMFCToolBarMenuButton; CMFCToolTipCtrl; CMFCToolTipInfo; CMFCVisualManager; CMFCVisualManagerOffice; CPaneFrameWnd; CTaskPane; CWinAppEx;

See Also

Other Resources

MFC Samples