Click here to Skip to main content
15,886,137 members
Articles / Desktop Programming / ATL

CM_ConfigBuilder 1.2g: Visual Studio 6/Visual Studio 2005/Visual Studio 2008 Code Generator for Application Settings Graphic Management

Rate me:
Please Sign up or sign in to vote.
4.94/5 (126 votes)
12 Feb 2008CPOL17 min read 696.4K   9.8K   262  
CM_ConfigBuilder generates and compiles the required files to manage your application's settings/preferences and to store/retrieve them in XML format.
/**
* @class		CVMBitmap
* --------------------------------------------------------------------------------------------------------
* @system		VMMFC
* @desc			Extended MFC CBitmap class
*				This is part of the VMMFC SampleCode
* @location		http://www.visiomedia.com/rooms/labor/src/vmmfc/index.htm
* @version		0630
* @author		Frank Luchs
* --------------------------------------------------------------------------------------------------------
* @history		1998-03-02	first draft
*				1999-02-11	DrawTiles
* --------------------------------------------------------------------------------------------------------
* @copyright	� 1985-2001 Visiomedia Software Corporation, All Rights Reserved.
* --------------------------------------------------------------------------------------------------------
*/


#ifndef _CVMBitmap_
#define _CVMBitmap_


class CVMBitmap : public CBitmap
{
public:

    BOOL Draw(HDC hDC, int x, int y);
	BOOL Draw(HDC hDC, int x, int y,int w,int h);
	BOOL DrawSized(HDC hDC, int x, int y,int w,int h);

    BOOL DrawTransparent(HDC hDC, int x, int y);
 	BOOL DrawTransparent(HDC hDC, int x, int y, COLORREF clrTrans=RGB(0xFF, 0, 0xFF));
 
	BOOL DrawTiles(HDC hDC, int nWidth, int nHeight);
	BOOL DrawTiles(HDC hDC, int left, int top, int nWidth, int nHeight);
    
	int GetWidth();
    int GetHeight();
    BOOL GetSize(int& nWidth, int& nHeight);

    CVMBitmap();
    virtual ~CVMBitmap();

protected:

    BOOL Update();
	BOOL CreateMask(HDC hDC,COLORREF clrTrans=RGB(0xFF, 0, 0xFF));

private:

    int			m_nWidth;
    int			m_nHeight;
    HBITMAP		m_hMask;  
	COLORREF	m_clrTransparent;

};



#endif // _CVMBitmap_

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
Web Developer
Italy Italy
For all Stefano's latest code, binaries and tutorials visit www.codemachines.com

Comments and Discussions