hide candidate list window
| 331 | |
| 332 | // hide candidate list window |
| 333 | void TextService::hideCandidates() { |
| 334 | if (validCandidateListElementId_) { |
| 335 | auto elementMgr = Ime::ComPtr<ITfUIElementMgr>::queryFrom(threadMgr()); |
| 336 | if (elementMgr) { |
| 337 | elementMgr->EndUIElement(candidateListElementId_); |
| 338 | candidateListElementId_ = 0; |
| 339 | validCandidateListElementId_ = false; |
| 340 | } |
| 341 | } |
| 342 | if (candidateWindow_) { |
| 343 | candidateWindow_ = nullptr; |
| 344 | } |
| 345 | showingCandidates_ = false; |
| 346 | } |
| 347 | |
| 348 | // message window |
| 349 | void TextService::showMessage(Ime::EditSession* session, std::wstring message, int duration) { |