Click here to Skip to main content
15,891,809 members
Articles / Desktop Programming / WTL

Windows 7 Goodies in C++: Introduction to the Ribbon

Rate me:
Please Sign up or sign in to vote.
4.94/5 (39 votes)
21 Feb 2011CPOL22 min read 130.5K   3.3K   118  
A tutorial that shows how to get started using the Ribbon in your applications
/*
This code accompanied the CodeProject article:
  Windows 7 Goodies in C++: Introduction to the Ribbon
written by:
  Michael Dunn (acidhelm@gmail.com)
Release date:
  February 22, 2011

This demo code is copyright (C) 2011 Michael Dunn.
The code is licensed under the Code Project Open License (CPOL), version 1.02.
The CPOL can be found at:
http://www.codeproject.com/info/cpol10.aspx
*/

// aboutdlg.h : interface of the CAboutDlg class
/////////////////////////////////////////////////////////////////////////////

#pragma once

class CAboutDlg : public CDialogImpl<CAboutDlg>
{
public:
    enum { IDD = IDD_ABOUTBOX };

    BEGIN_MSG_MAP(CAboutDlg)
        MSG_WM_INITDIALOG(OnInitDialog)
        COMMAND_ID_HANDLER_EX(IDOK, OnCloseCmd)
        COMMAND_ID_HANDLER_EX(IDCANCEL, OnCloseCmd)
    END_MSG_MAP()

    BOOL OnInitDialog ( HWND hwndFocus, LPARAM lParam );
    void OnCloseCmd ( UINT uCode, int nID, HWND hwndCtl );

protected:
    CHyperLink m_cLink;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) VMware
United States United States
Michael lives in sunny Mountain View, California. He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.

Mike was a VC MVP from 2005 to 2009.

Comments and Discussions