Click here to Skip to main content
13,000,742 members (59,645 online)
Click here to Skip to main content

Stats

206.8K views
3K downloads
51 bookmarked
Posted 1 Feb 2002

Menu Bitmaps from Minimal Source Code

, 1 Feb 2002
Add bitmaps to your menus easily and with very little source code.
// BmpMenuDoc.cpp : implementation of the CBmpMenuDoc class
//

#include "stdafx.h"
#include "BmpMenu.h"

#include "BmpMenuDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CBmpMenuDoc

IMPLEMENT_DYNCREATE(CBmpMenuDoc, CDocument)

BEGIN_MESSAGE_MAP(CBmpMenuDoc, CDocument)
	//{{AFX_MSG_MAP(CBmpMenuDoc)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CBmpMenuDoc construction/destruction

CBmpMenuDoc::CBmpMenuDoc()
{
}

CBmpMenuDoc::~CBmpMenuDoc()
{
}

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

	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// CBmpMenuDoc serialization

void CBmpMenuDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
	}
	else
	{
	}
}

/////////////////////////////////////////////////////////////////////////////
// CBmpMenuDoc diagnostics

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

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

/////////////////////////////////////////////////////////////////////////////
// CBmpMenuDoc 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)

Share

About the Author

Warren Gardner
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170624.1 | Last Updated 2 Feb 2002
Article Copyright 2002 by Warren Gardner
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid