blob: c65cf99a0fd9a58e37488df4e3eb64d8adbd1458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include "globals.h"
#include "ImageField.h"
#include "ImageFieldState.h"
ImageField::ImageField(Dialog *dlg, const char *name)
: Field(dlg, name), hBmp(NULL)
{
}
ImageField::~ImageField()
{
}
FieldType ImageField::getType() const
{
return SIMPLE_IMAGE;
}
HBITMAP ImageField::getImage() const
{
return hBmp;
}
void ImageField::setImage(HBITMAP hBmp)
{
if (this->hBmp == hBmp)
return;
this->hBmp = hBmp;
fireOnChange();
}
FieldState * ImageField::createState(DialogState *dialogState)
{
return new ImageFieldState(dialogState, this);
}
|