1 #include "ModuleControlString.h"
3 void CModuleControlString::Initialise(CAppSettings
*pAppSets
) {
5 WinUTF8::UTF8string_to_wstring(pAppSets
->GetStringParameter(m_iId
), wideText
);
6 m_hEntry
.SetWindowText(wideText
.c_str());
9 void CModuleControlString::Apply(CAppSettings
*pAppSets
) {
11 m_hEntry
.GetWindowText(wideText
);
12 pAppSets
->SetStringParameter(m_iId
, WinUTF8::wstring_to_UTF8string(wideText
));
15 void CModuleControlString::CreateChild(HWND hParent
, RECT
& rect
) {
16 m_hEntry
.Create(TEXT("EDIT"), hParent
, rect
, 0,
17 WS_CHILD
| WS_VISIBLE
| WS_TABSTOP
, WS_EX_CLIENTEDGE
);