forked from tcobbs/ldview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EnumOptionUI.h
35 lines (28 loc) · 836 Bytes
/
EnumOptionUI.h
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
#ifndef __EnumOptionUI_H__
#define __EnumOptionUI_H__
#include "OptionUI.h"
#include <TCFoundation/mystring.h>
/*
EnumOptionUI
This class is used for a string setting. It displays the name of the setting on
one or more lines, followed by an edit control that fills the following line.
*/
class EnumOptionUI: public OptionUI
{
public:
EnumOptionUI(OptionsCanvas *parent, LDExporterSetting &setting);
virtual ~EnumOptionUI(void) {}
virtual int updateLayout(HDC hdc, int x, int y, int width, bool update,
int &optimalWidth);
virtual void setEnabled(bool value);
virtual void getRect(RECT *rect);
virtual void commit(void);
protected:
virtual int getEditWidth(int width) { return width; }
virtual void valueChanged(void);
HWND m_hLabel;
HWND m_hCombo;
int m_spacing;
int m_comboHeight;
};
#endif // __EnumOptionUI_H__