projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
we don't have to call png_set_error_fn() any more after last commit
[wxWidgets.git]
/
src
/
msw
/
fdrepdlg.cpp
diff --git
a/src/msw/fdrepdlg.cpp
b/src/msw/fdrepdlg.cpp
index 964addb156f75a15beea17891e69806c0e20c086..81e37f95dd44c912528f7b8382d5226236d676ab 100644
(file)
--- a/
src/msw/fdrepdlg.cpp
+++ b/
src/msw/fdrepdlg.cpp
@@
-6,7
+6,7
@@
// Created: 23/03/2001
// RCS-ID:
// Copyright: (c) Markus Greither
// Created: 23/03/2001
// RCS-ID:
// Copyright: (c) Markus Greither
-// Licence: wxWi
dget
s licence
+// Licence: wxWi
ndow
s licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
@@
-82,7
+82,7
@@
public:
FINDREPLACE *GetPtrFindReplace() { return &m_findReplace; }
// set/query the "closed by user" flag
FINDREPLACE *GetPtrFindReplace() { return &m_findReplace; }
// set/query the "closed by user" flag
- void SetClosedByUser() { m_wasClosedByUser =
TRUE
; }
+ void SetClosedByUser() { m_wasClosedByUser =
true
; }
bool WasClosedByUser() const { return m_wasClosedByUser; }
private:
bool WasClosedByUser() const { return m_wasClosedByUser; }
private:
@@
-97,7
+97,7
@@
private:
// the find replace data used by the dialog
FINDREPLACE m_findReplace;
// the find replace data used by the dialog
FINDREPLACE m_findReplace;
- //
TRUE if the user closed us, FALSE
otherwise
+ //
true if the user closed us, false
otherwise
bool m_wasClosedByUser;
// registered Message for Dialog
bool m_wasClosedByUser;
// registered Message for Dialog
@@
-133,7
+133,7
@@
wxFindReplaceDialogImpl::wxFindReplaceDialogImpl(wxFindReplaceDialog *dialog,
m_hwndOwner = NULL;
m_oldParentWndProc = NULL;
m_hwndOwner = NULL;
m_oldParentWndProc = NULL;
- m_wasClosedByUser =
FALSE
;
+ m_wasClosedByUser =
false
;
wxZeroMemory(m_findReplace);
wxZeroMemory(m_findReplace);
@@
-178,7
+178,7
@@
void wxFindReplaceDialogImpl::InitString(const wxString& str,
*ppStr = new wxChar[len];
wxStrcpy(*ppStr, str);
*ppStr = new wxChar[len];
wxStrcpy(*ppStr, str);
- *pLen = len;
+ *pLen =
(WORD)
len;
}
void wxFindReplaceDialogImpl::InitFindWhat(const wxString& str)
}
void wxFindReplaceDialogImpl::InitFindWhat(const wxString& str)
@@
-260,7
+260,7
@@
LRESULT APIENTRY wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg,
// map flags from Windows
wxEventType evtType;
// map flags from Windows
wxEventType evtType;
- bool replace =
FALSE
;
+ bool replace =
false
;
if ( pFR->Flags & FR_DIALOGTERM )
{
// we have to notify the dialog that it's being closed by user and
if ( pFR->Flags & FR_DIALOGTERM )
{
// we have to notify the dialog that it's being closed by user and
@@
-278,13
+278,13
@@
LRESULT APIENTRY wxFindReplaceWindowProc(HWND hwnd, WXUINT nMsg,
{
evtType = wxEVT_COMMAND_FIND_REPLACE;
{
evtType = wxEVT_COMMAND_FIND_REPLACE;
- replace =
TRUE
;
+ replace =
true
;
}
else if ( pFR->Flags & FR_REPLACEALL )
{
evtType = wxEVT_COMMAND_FIND_REPLACE_ALL;
}
else if ( pFR->Flags & FR_REPLACEALL )
{
evtType = wxEVT_COMMAND_FIND_REPLACE_ALL;
- replace =
TRUE
;
+ replace =
true
;
}
else
{
}
else
{
@@
-372,7
+372,7
@@
void wxFindReplaceDialog::Init()
m_FindReplaceData = NULL;
// as we're created in the hidden state, bring the internal flag in sync
m_FindReplaceData = NULL;
// as we're created in the hidden state, bring the internal flag in sync
- m_isShown =
FALSE
;
+ m_isShown =
false
;
}
wxFindReplaceDialog::wxFindReplaceDialog(wxWindow *parent,
}
wxFindReplaceDialog::wxFindReplaceDialog(wxWindow *parent,
@@
-404,7
+404,7
@@
wxFindReplaceDialog::~wxFindReplaceDialog()
delete m_impl;
// prevent the base class dtor from trying to hide us!
delete m_impl;
// prevent the base class dtor from trying to hide us!
- m_isShown =
FALSE
;
+ m_isShown =
false
;
// and from destroying our window [again]
m_hWnd = (WXHWND)NULL;
// and from destroying our window [again]
m_hWnd = (WXHWND)NULL;
@@
-434,7
+434,7
@@
bool wxFindReplaceDialog::Show(bool show)
if ( !wxWindowBase::Show(show) )
{
// visibility status didn't change
if ( !wxWindowBase::Show(show) )
{
// visibility status didn't change
- return
FALSE
;
+ return
false
;
}
// do we already have the dialog window?
}
// do we already have the dialog window?
@@
-443,16
+443,16
@@
bool wxFindReplaceDialog::Show(bool show)
// yes, just use it
(void)::ShowWindow(GetHwnd(), show ? SW_SHOW : SW_HIDE);
// yes, just use it
(void)::ShowWindow(GetHwnd(), show ? SW_SHOW : SW_HIDE);
- return
TRUE
;
+ return
true
;
}
if ( !show )
{
// well, it doesn't exist which is as good as being hidden
}
if ( !show )
{
// well, it doesn't exist which is as good as being hidden
- return
TRUE
;
+ return
true
;
}
}
- wxCHECK_MSG( m_FindReplaceData,
FALSE
, _T("call Create() first!") );
+ wxCHECK_MSG( m_FindReplaceData,
false
, _T("call Create() first!") );
wxASSERT_MSG( !m_impl, _T("why don't we have the window then?") );
wxASSERT_MSG( !m_impl, _T("why don't we have the window then?") );
@@
-482,7
+482,7
@@
bool wxFindReplaceDialog::Show(bool show)
delete m_impl;
m_impl = NULL;
delete m_impl;
m_impl = NULL;
- return
FALSE
;
+ return
false
;
}
// subclass parent window in order to get FINDMSGSTRING message
}
// subclass parent window in order to get FINDMSGSTRING message
@@
-495,7
+495,7
@@
bool wxFindReplaceDialog::Show(bool show)
m_hWnd = (WXHWND)hwnd;
m_hWnd = (WXHWND)hwnd;
- return
TRUE
;
+ return
true
;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------