void CPatchViewDlg::OnEscape() { if (::IsWindowVisible(m_FindBar)) { OnFindExit(); return; } SendMessage(WM_CLOSE); }
LRESULT CPatchViewDlg::OnFindExitMessage(WPARAM, LPARAM) { OnFindExit(); return 0; }
void CFindBar::OnCancel() { // hide the find bar on escape OnFindExit(); }