-void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd)
-{
- m_hwndOwner = hwnd;
-
- // check that we don't subclass the parent twice: this would be a bad idea
- // as then we'd have infinite recursion in wxFindReplaceWindowProc
- wxCHECK_RET( wxGetWindowProc(hwnd) != &wxFindReplaceWindowProc,
- _T("can't have more than one find dialog currently") );
-
- // set the new one and save the old as user data to allow access to it
- // from wxFindReplaceWindowProc
- m_oldParentWndProc = wxSetWindowProc(hwnd, wxFindReplaceWindowProc);
-
- wxSetWindowUserData(hwnd, (void *)m_oldParentWndProc);
-}
-