gates_of_skeldal/mapedit/Podlahar/ImageView.h
2025-01-24 18:27:22 +01:00

27 lines
395 B
C++

#pragma once
// CImageView
class CImageView : public CStatic
{
DECLARE_DYNAMIC(CImageView)
char *_buffer;
struct BMI
{
BITMAPINFOHEADER _bmh;
RGBQUAD _palette[256];
} _bmi;
public:
CImageView();
virtual ~CImageView();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint();
void UpdateBuffer(char *buffer);
void SetPalette(char *palette);
};