Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Enhanced Progress Bar Control

, 11 Jun 2002
An enhanced progress control that supports gradient shading, formatted text, animation, tooltips, shape, 'snake' and reverse modes, and vertical modes
#if !defined(AFX_RGNX_H__A18BC5CA_F905_464C_8FFF_CA1C1616B6A9__INCLUDED_)
#define AFX_RGNX_H__A18BC5CA_F905_464C_8FFF_CA1C1616B6A9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

///////////////////////////////////////////////////////////////////////////////
// class CRgnX
//
// Author:  Yury Goltsman
// email:   ygprg@go.to
// page:    http://go.to/ygprg
// Copyright � 2000, Yury Goltsman
//
// This code provided "AS IS," without warranty of any kind.
// You may freely use or modify this code provided this
// Copyright is included in all derived versions.
//
// version : 1.0
// This code based on function created by Jean-Edouard Lachand-Robert
//

class CRgnX : public CRgn  
{
public:
	CRgnX();
	virtual ~CRgnX();

	BOOL FromBitmap(HBITMAP hBmp, COLORREF clrTransparent = 0, COLORREF clrTolerance = 0x101010);
	BOOL FromBitmapResource(UINT nBitmapID, COLORREF clrTransparent = 0, COLORREF clrTolerance = 0x101010);
	BOOL FromBitmapResource(LPCTSTR lpszBitmapID, COLORREF clrTransparent = 0, COLORREF clrTolerance = 0x101010);
	BOOL FromText(UINT nStringID, LPRECT rc, DWORD dwStyle, CFont* pFont = NULL, LPDRAWTEXTPARAMS lpDTParams = NULL);
	BOOL FromText(LPCTSTR lpszText, LPRECT rc, DWORD dwStyle, CFont* pFont = NULL, LPDRAWTEXTPARAMS lpDTParams = NULL);
};

#endif // !defined(AFX_RGNX_H__A18BC5CA_F905_464C_8FFF_CA1C1616B6A9__INCLUDED_)

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

Yury Goltsman
Software Developer (Senior)
Israel Israel
Yury is Software Engineer since 1988.
His programming experience includes C#/VB.NET, WPF, C/C++(MFC/STL), Borland Delphi & C++ (VCL), JavaScript, HTML, CSS, XML, SQL, VB6, DirectX, Flash.
He has worked on PCs (DOS/Win3.1-Vista) and PocketPCs (WinCE).
 
Yury was born in Ukraine, but currently based in Jerusalem.

| Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 12 Jun 2002
Article Copyright 2001 by Yury Goltsman
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid