#if !defined(AFX_PNIMAGEBUTTON_H__D6751986_DDBD_11D3_9F4A_080009EE62AA__INCLUDED_)
#define AFX_PNIMAGEBUTTON_H__D6751986_DDBD_11D3_9F4A_080009EE62AA__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PNImageButton.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CPNImageButton window

class CPNImageButton : public CButton
{
// Construction
public:
	CPNImageButton();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPNImageButton)
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL SetData( BOOL ImageOnLeft, UINT IDUp, UINT IDDown=0, UINT IDFocus=0, UINT IDDisabled=0);
	void DrawTransparent(CDC* pDC, int x, int y, CBitmap* hbmImage, BOOL LowerLeft=TRUE, COLORREF crColor=0);
	void Emboss( CBitmap& Dest, CBitmap& bmSource );
	void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

	// Bitmaps for image display
	CBitmap m_Up, m_Down, m_Focus, m_Disabled;
	// Bitmap height and width information
	int m_ImageWidth, m_ImageHeight;
	// Flag for image on left or right
	BOOL m_ImageOnLeft;

	virtual ~CPNImageButton();

	// Generated message map functions
protected:
	//{{AFX_MSG(CPNImageButton)
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PNIMAGEBUTTON_H__D6751986_DDBD_11D3_9F4A_080009EE62AA__INCLUDED_)
