| 361 | } |
| 362 | |
| 363 | void MessageEditor::StopEdit() |
| 364 | { |
| 365 | bool wasEditing = m_bEditing; |
| 366 | m_bEditing = false; |
| 367 | m_replyMessage = 0; |
| 368 | m_replyName = ""; |
| 369 | |
| 370 | if (wasEditing) |
| 371 | { |
| 372 | Expand(-m_mentionAreaHeight); |
| 373 | SetWindowText(m_edit_hwnd, TEXT("")); |
| 374 | SendMessage(m_edit_hwnd, WM_UPDATETEXTSIZE, 0, 0); |
| 375 | } |
| 376 | } |
| 377 | |
| 378 | void MessageEditor::AutoCompleteLookup(const std::string& word, char query, std::vector<AutoCompleteMatch>& matches) |
| 379 | { |