project64/Source/Project64/UserInterface/WTLControls/wtl-BitmapPicture.h

35 lines
847 B
C
Raw Normal View History

#pragma once
class CBitmapPicture :
2022-09-26 02:31:54 +00:00
public CWindowImpl<CBitmapPicture>
{
public:
2022-09-26 02:31:54 +00:00
BEGIN_MSG_MAP(CBitmapPicture)
{
MESSAGE_HANDLER(WM_PAINT, OnPaint);
}
END_MSG_MAP()
2022-09-26 02:31:54 +00:00
CBitmapPicture();
2022-09-26 02:31:54 +00:00
LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL & /*bHandled*/);
2022-09-26 02:31:54 +00:00
bool SetIcon(LPCWSTR lpszResourceName, uint32_t nWidth, uint32_t nHeight);
void SetBitmap(LPCWSTR lpszResourceName);
void SetBackroundBrush(HBRUSH brush);
private:
2022-09-26 02:31:54 +00:00
CBitmapPicture(const CBitmapPicture &);
CBitmapPicture & operator=(const CBitmapPicture &);
2022-09-26 02:31:54 +00:00
bool CBitmapPicture::SetBitmap(HBITMAP hBitmap);
2022-09-26 02:31:54 +00:00
int m_nResourceID;
std::wstring m_strResourceName;
uint32_t m_IconWidth, m_IconHeight;
bool m_ResourceIcon;
BITMAP m_bmInfo;
CBitmap m_hBitmap;
CBrush m_BackgroundBrush;
2021-03-17 09:28:07 +00:00
};