.NET
  Home arrow .NET arrow The Windows Ribbon Framework
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

The Windows Ribbon Framework
By: Gabor Bernat
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2009-10-19

    Table of Contents:
  • The Windows Ribbon Framework
  • Creating it
  • Calibrating the ribbon
  • Commands and Modes

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The Windows Ribbon Framework


    (Page 1 of 4 )

    Throughout our history it seems as if the most revolutionary ideas just pop out of someone’s head at a given moment. Then again, there are some that are obtained through deep research. The appearance of the Ribbon in the Microsoft Office environment is the result of the latter. However, inventing something does not necessarily mean instantly making it accessible to the masses. For this, another group of developers from the Redmond giant created the Ribbon Framework.

    I have already disclosed some information about how the framework works in one of my previous articles, Markup Language for the Ribbon Framework. There I explained that the process of creating a ribbon is split into two parts, design and function. I tried to give a teaser about the first part in my previous articles. Naturally I just presented some general traits and coded a simple example.

    I had no intention to cover the Markup language used in depth. For that you have the MSDN library, which is quite complete on this topic. Today I will focus on the second part, function. I will present how to get from the binary files to a working application. I will continue to use the HTML edit sample within Visual Studio 2008 to make my point in practice.

    I hope that you've already linked the XML up with the UICC.exe from last time, and managed to generate the binary code from it, along with the resource file and the header full of definitions. For starters, we will need to add these to our solution. Open up the rc file (or just get to the resource includes from the Resource View) and add the include:

    #include "RibbonRes/ribbonres.rc2"

    You can also add it to the solution if you want better handling. However, this is not necessary. Now we can continue to create a ribbon. The content on the following pages should be easy to comprehend for anyone who has good knowledge of C++ and MFC.

    More .NET Articles
    More By Gabor Bernat


     

    .NET ARTICLES

    - Introducing .NET
    - Building Business Objects for an Application
    - Methods for an Application`s Business Logic ...
    - Properties of an Application`s Business Logi...
    - Classes and Properties in an Application`s B...
    - Organizing Code for the Business Logic Layer...
    - Building the Business Logic Layer
    - Completing a Business Layer with Windows Wor...
    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek