Click here to Skip to main content
12,450,568 members (50,145 online)
Click here to Skip to main content

Stats

203.8K views
2.9K downloads
51 bookmarked
Posted

Menu Bitmaps from Minimal Source Code

, 1 Feb 2002 CPOL
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...

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