|
/*****************************************************
** Module : CImageMap **
** Purpose : To locate sub images in skin template **
** **
** Copyright James Spibey, 2000 (spib@bigfoot.com) **
** Feel free to use and distribute. May not be sold **
** for profit. **
*****************************************************/
#if !defined(AFX_IMAGEMAP_H__018CE6D8_1E42_11D3_B643_00C04F6801E7__INCLUDED_)
#define AFX_IMAGEMAP_H__018CE6D8_1E42_11D3_B643_00C04F6801E7__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#define TITLEBAR_LEFT_CORNER 0
#define TITLEBAR_MIDDLE 1
#define TITLEBAR_FILL 2
#define TITLEBAR_RIGHT_CORNER 3
#define INACTIVE_TITLEBAR_LEFT_CORNER 4
#define INACTIVE_TITLEBAR_MIDDLE 5
#define INACTIVE_TITLEBAR_FILL 6
#define INACTIVE_TITLEBAR_RIGHT_CORNER 7
#define BOTTOM_LEFT 8
#define BOTTOM_RIGHT 9
#define BOTTOM_FILL 10
#define LEFT_EDGE 11
#define RIGHT_EDGE 12
#define CLOSE_BUTTON 13
#define MINIMIZE_BUTTON 14
#define SCROLLBAR 15
#define SCROLLBAR_PRESSED 16
#define SHADE_LEFT_CORNER 17
#define SHADE_RIGHT_CORNER_ACTIVE 18
#define SHADE_MIDDLE 19
#define SHADE_RIGHT_CORNER_INACTIVE 20
#define MAXIMIZE_BUTTON 21
#define MAX_AREAS 50
class CImageMap
{
public:
CImageMap();
virtual ~CImageMap();
CRect OffSet(int Index){return m_ImageMap[Index];}
protected:
CRect m_ImageMap[MAX_AREAS];
};
#endif // !defined(AFX_IMAGEMAP_H__018CE6D8_1E42_11D3_B643_00C04F6801E7__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.
James is currently working as a Software Engineer providing large scale Warehouse Management Systems and Airport Baggage Handling Systems. He is a Windows specialist but nowadays spends about 65% of his time fighting with VI in a vain attempt to get his UNIX C code to compile. He has been programming in C/C++ for 6 years and Visual C++/MFC for 4 years.
In his spare time James plays a variety of musical instruments including guitar and piano with varying degrees of success. He has been told he spends too much time and money in the pub but doesn't everyone have their own stool at the bar?
James is originally from Nottingham (no Robin Hood jokes please) but is now based in sunny Manchester, UK.
The attached photo shows James in his favourite position, drinking beer with a hand growing out of his neck.