assert if opening more than one find/replace dialog under the same parent -- this doesn't work currently (and maybe can't work at all)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -190,15 +190,15 @@ void wxFindReplaceDialogImpl::SubclassDialog(HWND hwnd)
|
|||||||
|
|
||||||
// check that we don't subclass the parent twice: this would be a bad idea
|
// check that we don't subclass the parent twice: this would be a bad idea
|
||||||
// as then we'd have infinite recursion in wxFindReplaceWindowProc
|
// as then we'd have infinite recursion in wxFindReplaceWindowProc
|
||||||
if ( !wxCheckWindowWndProc((WXHWND)hwnd, (WXFARPROC)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
|
// set the new one and save the old as user data to allow access to it
|
||||||
// from wxFindReplaceWindowProc
|
// from wxFindReplaceWindowProc
|
||||||
m_oldParentWndProc = wxSetWindowProc(hwnd, wxFindReplaceWindowProc);
|
m_oldParentWndProc = wxSetWindowProc(hwnd, wxFindReplaceWindowProc);
|
||||||
|
|
||||||
wxSetWindowUserData(hwnd, (void *)m_oldParentWndProc);
|
wxSetWindowUserData(hwnd, (void *)m_oldParentWndProc);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
wxFindReplaceDialogImpl::~wxFindReplaceDialogImpl()
|
wxFindReplaceDialogImpl::~wxFindReplaceDialogImpl()
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user