void MainBook::OnPageChanging(wxBookCtrlEvent& e) { LEditor* editor = GetActiveEditor(); if(editor) { editor->CallTipCancel(); } #if HAS_LIBCLANG ClangCodeCompletion::Instance()->CancelCodeComplete(); #endif e.Skip(); }