| 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 | ///////////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected