Click here to Skip to main content
15,888,610 members
Articles / Desktop Programming / MFC

Microsoft WORD 2007 Style Semi-transparent Minibar

Rate me:
Please Sign up or sign in to vote.
4.96/5 (13 votes)
29 Jun 2010CPOL3 min read 33.8K   815   18  
Create a very basic Microsoft WORD 2007 style semi-transparent Minibar with tooltip like behaviour
// MFCDocViewApplicationDoc.cpp : implementation of the CMFCDocViewApplicationDoc class
//

#include "stdafx.h"
#include "MFCDocViewApplication.h"

#include "MFCDocViewApplicationDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CMFCDocViewApplicationDoc

IMPLEMENT_DYNCREATE(CMFCDocViewApplicationDoc, CDocument)

BEGIN_MESSAGE_MAP(CMFCDocViewApplicationDoc, CDocument)
END_MESSAGE_MAP()


// CMFCDocViewApplicationDoc construction/destruction

CMFCDocViewApplicationDoc::CMFCDocViewApplicationDoc()
{
	// TODO: add one-time construction code here

}

CMFCDocViewApplicationDoc::~CMFCDocViewApplicationDoc()
{
}

BOOL CMFCDocViewApplicationDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// CMFCDocViewApplicationDoc serialization

void CMFCDocViewApplicationDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}


// CMFCDocViewApplicationDoc diagnostics

#ifdef _DEBUG
void CMFCDocViewApplicationDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CMFCDocViewApplicationDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// CMFCDocViewApplicationDoc commands

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
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1

Comments and Discussions