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

Method OnEditChanged

DuiLib/Control/UIEdit.cpp:138–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 LRESULT CEditWnd::OnEditChanged(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
139 {
140 if( !m_bInit ) return 0;
141 if( m_pOwner == NULL ) return 0;
142 // Copy text back
143 int cchLen = ::GetWindowTextLength(m_hWnd) + 1;
144 LPTSTR pstr = static_cast<LPTSTR>(_alloca(cchLen * sizeof(TCHAR)));
145 ASSERT(pstr);
146 if( pstr == NULL ) return 0;
147 ::GetWindowText(m_hWnd, pstr, cchLen);
148 m_pOwner->m_sText = pstr;
149 m_pOwner->GetManager()->SendNotify(m_pOwner, DUI_MSGTYPE_TEXTCHANGED);
150 return 0;
151 }
152
153
154 /////////////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 2

SendNotifyMethod · 0.80
GetManagerMethod · 0.80

Tested by

no test coverage detected