// Author: Markus Greither and Vadim Zeitlin
// Modified by:
// Created: 23/03/2001
-// RCS-ID: $Id$
// Copyright: (c) Markus Greither
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#if wxUSE_UNICODE_MSLU
// This is a hack for a MSLU problem: Versions up to 1.0.4011
// of UNICOWS.DLL send the correct UNICODE item after button press
- // and a bogus ANSI mode item right after this, so lets ignore
+ // and a bogus ANSI mode item right after this, so let's ignore
// the second bogus message
if ( wxUsingUnicowsDll() && s_lastMsgFlags == pFR->Flags )
{
// 2 cases
dialog->GetImpl()->SetClosedByUser();
- evtType = wxEVT_COMMAND_FIND_CLOSE;
+ evtType = wxEVT_FIND_CLOSE;
}
else if ( pFR->Flags & FR_FINDNEXT )
{
- evtType = wxEVT_COMMAND_FIND_NEXT;
+ evtType = wxEVT_FIND_NEXT;
}
else if ( pFR->Flags & FR_REPLACE )
{
- evtType = wxEVT_COMMAND_FIND_REPLACE;
+ evtType = wxEVT_FIND_REPLACE;
replace = true;
}
else if ( pFR->Flags & FR_REPLACEALL )
{
- evtType = wxEVT_COMMAND_FIND_REPLACE_ALL;
+ evtType = wxEVT_FIND_REPLACE_ALL;
replace = true;
}
FINDREPLACE *pFR = (FINDREPLACE *)lParam;
wxFindReplaceDialog *dialog = (wxFindReplaceDialog *)pFR->lCustData;
- ::SetWindowText(hwnd, dialog->GetTitle().wx_str());
+ ::SetWindowText(hwnd, dialog->GetTitle().t_str());
// don't return FALSE from here or the dialog won't be shown
return TRUE;
wxLogError(_("Failed to create the standard find/replace dialog (error code %d)"),
::CommDlgExtendedError());
- delete m_impl;
- m_impl = NULL;
+ wxDELETE(m_impl);
return false;
}