blob: d72c83eb927c0a44096ace707a21b18522e1be7c (
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
|
#ifndef _TOX_DIALOGS_H_
#define _TOX_DIALOGS_H_
class CCtrlLabel : public CCtrlData
{
typedef CCtrlData CSuper;
public:
CCtrlLabel(CDlgBase *dlg, int ctrlId) :
CSuper(dlg, ctrlId)
{
}
virtual void OnInit()
{
CSuper::OnInit();
OnReset();
}
virtual void OnReset()
{
if (GetDataType() == DBVT_TCHAR)
SetText(LoadText());
else if (GetDataType() != DBVT_DELETED)
SetInt(LoadInt());
}
};
///////////////////////////////////////////////
typedef CProtoDlgBase<CToxProto> CToxDlgBase;
#endif //_TOX_DIALOGS_H_
|