- if ( !wxCheckWindowWndProc((WXHWND)hwnd, (WXFARPROC)wxFindReplaceWindowProc) )
- {
- // set the new one and save the old as user data to allow access to it
- // from wxFindReplaceWindowProc
- m_oldParentWndProc = wxSetWindowProc(hwnd, wxFindReplaceWindowProc);
+ wxCHECK_RET( wxGetWindowProc(hwnd) != wxFindReplaceWindowProc,
+ _T("can't have more than one find dialog currently") );