MCPcopy Create free account
hub / github.com/cinience/RedisStudio / InitWindow

Method InitWindow

RedisStudio/ConnInfoSubWhd.cpp:25–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void ConnInfoSubWhd::InitWindow()
26{
27 TDicTables& dicObj = *m_pdicServerInfo;
28 m_pEditName = static_cast<CEditUI*>(m_PaintManager.FindControl(_T("edt_server_name")));
29 m_pEditHost = static_cast<CEditUI*>(m_PaintManager.FindControl(_T("edt_server_ip")));
30 m_pEditPort = static_cast<CEditUI*>(m_PaintManager.FindControl(_T("edt_server_port")));
31 m_pEditAuth = static_cast<CEditUI*>(m_PaintManager.FindControl(_T("edt_server_passwd")));
32 CLabelUI* pLabelAdd = static_cast<CLabelUI*>(m_PaintManager.FindControl(_T("lab_conn_add")));
33 CLabelUI* pLabelAlt = static_cast<CLabelUI*>(m_PaintManager.FindControl(_T("lab_conn_alt")));
34 if (m_eType == Type_Add)
35 {
36 pLabelAdd->SetVisible(true);
37 pLabelAlt->SetVisible(false);
38 }
39 else
40 {
41 m_pEditName->SetText(Base::CharacterSet::ANSIToUnicode(dicObj[ConnInfoUI::kServerNameIndex][m_iCelIdx]).c_str());
42 m_pEditHost->SetText(Base::CharacterSet::ANSIToUnicode(dicObj[ConnInfoUI::kServerIpIndex][m_iCelIdx]).c_str());
43 m_pEditPort->SetText(Base::CharacterSet::ANSIToUnicode(dicObj[ConnInfoUI::kServerPortIndex][m_iCelIdx]).c_str());
44 m_pEditAuth->SetText(Base::CharacterSet::ANSIToUnicode(dicObj[ConnInfoUI::kServerAuthIndex][m_iCelIdx]).c_str());
45 pLabelAdd->SetVisible(false);
46 pLabelAlt->SetVisible(true);
47 }
48 *m_bNeedApply = false;
49}
50
51LPCTSTR ConnInfoSubWhd::GetWindowClassName() const
52{

Callers

nothing calls this directly

Calls 3

FindControlMethod · 0.45
SetVisibleMethod · 0.45
SetTextMethod · 0.45

Tested by

no test coverage detected