forked from tcobbs/ldview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PathOptionUI.h
37 lines (30 loc) · 920 Bytes
/
PathOptionUI.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
36
37
#ifndef __PathOptionUI_H__
#define __PathOptionUI_H__
#include "StringOptionUI.h"
#include <TCFoundation/mystring.h>
/*
StringOptionUI
This class is used for a path setting. It is identical to a string setting,
except that the edit box is made narrower in order to accomodate a browse
button on its right.
*/
class PathOptionUI: public StringOptionUI
{
public:
PathOptionUI(OptionsCanvas *parent, LDExporterSetting &setting);
virtual ~PathOptionUI(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 doClick(HWND control);
protected:
virtual int getEditWidth(int width)
{
// Leave space for the browse button to the right of the edit control.
return width - m_spacing - m_browseSize.cx;
}
HWND m_hBrowseButton;
SIZE m_browseSize;
};
#endif // __PathOptionUI_H__