www.pudn.com > pngButton(GDI+).rar > Picture.h
#pragma once
// CPicture
class CPicture : public CStatic
{
DECLARE_DYNAMIC(CPicture)
public:
CPicture();
virtual ~CPicture();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
void SetImage(WCHAR* path);
Image *image;
CRect m_rect;
bool m_IsImage;
void SetImage(Image &bmp);
};