Source cleaning: whitespaces, -1/wxDefaultCoord, TRUE/true, FALSE/false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,7 +45,7 @@ protected:
|
||||
{
|
||||
wxCaretBase::Init();
|
||||
|
||||
m_hasCaret = FALSE;
|
||||
m_hasCaret = false;
|
||||
}
|
||||
|
||||
// override base class virtuals
|
||||
|
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
// items may be checked
|
||||
virtual bool IsChecked(size_t uiIndex) const;
|
||||
virtual void Check(size_t uiIndex, bool bCheck = TRUE);
|
||||
virtual void Check(size_t uiIndex, bool bCheck = true);
|
||||
|
||||
// return the index of the item at this position or wxNOT_FOUND
|
||||
int HitTest(const wxPoint& pt) const { return DoHitTestItem(pt.x, pt.y); }
|
||||
|
@@ -90,7 +90,7 @@ public:
|
||||
virtual bool Flush();
|
||||
|
||||
// X11 has two clipboards which get selected by this call. Empty on MSW.
|
||||
void UsePrimarySelection( bool WXUNUSED(primary) = FALSE ) { }
|
||||
void UsePrimarySelection( bool WXUNUSED(primary) = false ) { }
|
||||
|
||||
private:
|
||||
bool m_clearOnExit;
|
||||
|
@@ -87,7 +87,7 @@ bool wxCaret::MSWCreateCaret()
|
||||
CALL_CARET_API(CreateCaret, (GetWinHwnd(GetWindow()), 0,
|
||||
m_width, m_height));
|
||||
|
||||
m_hasCaret = TRUE;
|
||||
m_hasCaret = true;
|
||||
}
|
||||
|
||||
return m_hasCaret;
|
||||
@@ -113,7 +113,7 @@ void wxCaret::OnKillFocus()
|
||||
{
|
||||
if ( m_hasCaret )
|
||||
{
|
||||
m_hasCaret = FALSE;
|
||||
m_hasCaret = false;
|
||||
|
||||
CALL_CARET_API(DestroyCaret, ());
|
||||
}
|
||||
@@ -182,7 +182,7 @@ void wxCaret::DoSize()
|
||||
{
|
||||
if ( m_hasCaret )
|
||||
{
|
||||
m_hasCaret = FALSE;
|
||||
m_hasCaret = false;
|
||||
CALL_CARET_API(DestroyCaret, ());
|
||||
MSWCreateCaret();
|
||||
OnSetFocus();
|
||||
|
@@ -129,7 +129,7 @@ bool wxCheckBox::MSWCommand(WXUINT WXUNUSED(param), WXWORD WXUNUSED(id))
|
||||
event.SetEventObject(this);
|
||||
ProcessCommand(event);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxCheckBox::Create(wxWindow *parent,
|
||||
@@ -141,7 +141,7 @@ bool wxCheckBox::Create(wxWindow *parent,
|
||||
const wxString& name)
|
||||
{
|
||||
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
long msStyle = WS_TABSTOP;
|
||||
|
||||
|
@@ -157,9 +157,9 @@ private:
|
||||
};
|
||||
|
||||
wxCheckListBoxItem::wxCheckListBoxItem(wxCheckListBox *pParent, size_t nIndex)
|
||||
: wxOwnerDrawn(wxEmptyString, TRUE) // checkable
|
||||
: wxOwnerDrawn(wxEmptyString, true) // checkable
|
||||
{
|
||||
m_bChecked = FALSE;
|
||||
m_bChecked = false;
|
||||
m_pParent = pParent;
|
||||
m_nIndex = nIndex;
|
||||
|
||||
@@ -253,10 +253,10 @@ bool wxCheckListBoxItem::OnDrawItem(wxDC& dc, const wxRect& rc,
|
||||
}
|
||||
*/
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// change the state of the item and redraw it
|
||||
@@ -285,7 +285,7 @@ void wxCheckListBoxItem::Check(bool check)
|
||||
wxLogDebug(wxT("LB_GETITEMRECT failed"));
|
||||
}
|
||||
|
||||
InvalidateRect(hwndListbox, &rcUpdate, FALSE);
|
||||
::InvalidateRect(hwndListbox, &rcUpdate, FALSE);
|
||||
}
|
||||
|
||||
// send an "item checked" event
|
||||
@@ -379,7 +379,7 @@ bool wxCheckListBox::SetFont( const wxFont &font )
|
||||
|
||||
wxListBox::SetFont(font);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// create/retrieve item
|
||||
@@ -405,10 +405,10 @@ bool wxCheckListBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
|
||||
// add place for the check mark
|
||||
pStruct->itemWidth += wxOwnerDrawn::GetDefaultMarginWidth();
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// check items
|
||||
@@ -416,7 +416,7 @@ bool wxCheckListBox::MSWOnMeasure(WXMEASUREITEMSTRUCT *item)
|
||||
|
||||
bool wxCheckListBox::IsChecked(size_t uiIndex) const
|
||||
{
|
||||
wxCHECK_MSG( uiIndex < (size_t)GetCount(), FALSE, _T("bad wxCheckListBox index") );
|
||||
wxCHECK_MSG( uiIndex < (size_t)GetCount(), false, _T("bad wxCheckListBox index") );
|
||||
|
||||
return GetItem(uiIndex)->IsChecked();
|
||||
}
|
||||
|
@@ -138,11 +138,11 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
|
||||
{
|
||||
// initialize wxControl
|
||||
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
// now create the real HWND
|
||||
if ( !MSWCreateControl(wxT("COMBOBOX"), _T(""), pos, size) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
|
||||
// choice/combobox normally has "white" (depends on colour scheme, of
|
||||
@@ -158,7 +158,7 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
|
||||
// and now we may finally size the control properly (if needed)
|
||||
SetBestSize(size);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxChoice::Create(wxWindow *parent,
|
||||
@@ -327,7 +327,7 @@ int wxChoice::FindString(const wxString& s) const
|
||||
for ( int i = 0; i < count; i++ )
|
||||
{
|
||||
// as CB_FINDSTRINGEXACT is case insensitive, be case insensitive too
|
||||
if ( GetString(i).IsSameAs(s, FALSE) )
|
||||
if ( GetString(i).IsSameAs(s, false) )
|
||||
return i;
|
||||
}
|
||||
|
||||
@@ -435,7 +435,7 @@ wxClientData* wxChoice::DoGetItemClientObject( int n ) const
|
||||
void wxChoice::UpdateVisibleHeight()
|
||||
{
|
||||
// be careful to not change the width here
|
||||
DoSetSize(-1, -1, -1, GetSize().y, wxSIZE_USE_EXISTING);
|
||||
DoSetSize(wxDefaultCoord, wxDefaultCoord, wxDefaultCoord, GetSize().y, wxSIZE_USE_EXISTING);
|
||||
}
|
||||
|
||||
void wxChoice::DoMoveWindow(int x, int y, int width, int height)
|
||||
@@ -474,7 +474,7 @@ void wxChoice::DoSetSize(int x, int y,
|
||||
// the height which we must pass to Windows should be the total height of
|
||||
// the control including the drop down list while the height given to us
|
||||
// is, of course, just the height of the permanently visible part of it
|
||||
if ( height != -1 )
|
||||
if ( height != wxDefaultCoord )
|
||||
{
|
||||
// don't make the drop down list too tall, arbitrarily limit it to 40
|
||||
// items max and also don't leave it empty
|
||||
@@ -499,7 +499,7 @@ void wxChoice::DoSetSize(int x, int y,
|
||||
// if the height specified for the visible part of the control is
|
||||
// different from the current one, we need to change it separately
|
||||
// as it is not affected by normal WM_SETSIZE
|
||||
if ( height != -1 )
|
||||
if ( height != wxDefaultCoord )
|
||||
{
|
||||
const int delta = heightOrig - GetSize().y;
|
||||
if ( delta )
|
||||
@@ -561,7 +561,7 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
if ( param != CBN_SELCHANGE)
|
||||
{
|
||||
// "selection changed" is the only event we're after
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
int n = GetSelection();
|
||||
@@ -578,7 +578,7 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
WXHBRUSH wxChoice::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(nCtlColor),
|
||||
|
@@ -87,11 +87,11 @@
|
||||
// old-style clipboard functions using Windows API
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
static bool gs_wxClipboardIsOpen = FALSE;
|
||||
static bool gs_wxClipboardIsOpen = false;
|
||||
|
||||
bool wxOpenClipboard()
|
||||
{
|
||||
wxCHECK_MSG( !gs_wxClipboardIsOpen, TRUE, wxT("clipboard already opened.") );
|
||||
wxCHECK_MSG( !gs_wxClipboardIsOpen, true, wxT("clipboard already opened.") );
|
||||
|
||||
wxWindow *win = wxTheApp->GetTopWindow();
|
||||
if ( win )
|
||||
@@ -107,24 +107,24 @@ bool wxOpenClipboard()
|
||||
{
|
||||
wxLogDebug(wxT("Can not open clipboard without a main window."));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool wxCloseClipboard()
|
||||
{
|
||||
wxCHECK_MSG( gs_wxClipboardIsOpen, FALSE, wxT("clipboard is not opened") );
|
||||
wxCHECK_MSG( gs_wxClipboardIsOpen, false, wxT("clipboard is not opened") );
|
||||
|
||||
gs_wxClipboardIsOpen = FALSE;
|
||||
gs_wxClipboardIsOpen = false;
|
||||
|
||||
if ( ::CloseClipboard() == 0 )
|
||||
{
|
||||
wxLogSysError(_("Failed to close the clipboard."));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxEmptyClipboard()
|
||||
@@ -133,10 +133,10 @@ bool wxEmptyClipboard()
|
||||
{
|
||||
wxLogSysError(_("Failed to empty the clipboard."));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxIsClipboardOpened()
|
||||
@@ -151,7 +151,7 @@ bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
|
||||
if ( ::IsClipboardFormatAvailable(cf) )
|
||||
{
|
||||
// ok from the first try
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
// for several standard formats, we can convert from some other ones too
|
||||
@@ -167,7 +167,7 @@ bool wxIsClipboardFormatAvailable(wxDataFormat dataFormat)
|
||||
#endif // wxUSE_ENH_METAFILE
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
|
||||
SelectObject(hdcSrc, old);
|
||||
DeleteDC(hdcMem);
|
||||
DeleteDC(hdcSrc);
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
HBITMAP old1 = (HBITMAP) SelectObject(hdcMem, hBitmap);
|
||||
@@ -274,7 +274,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
|
||||
default:
|
||||
{
|
||||
wxLogError(_("Unsupported clipboard format."));
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
case wxDF_OEMTEXT:
|
||||
@@ -309,7 +309,7 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
|
||||
|
||||
// Create temporary buffer for HTML header...
|
||||
char *buf = new char [400 + strlen(html)];
|
||||
if(!buf) return FALSE;
|
||||
if(!buf) return false;
|
||||
|
||||
// Get clipboard id for HTML format...
|
||||
static int cfid = 0;
|
||||
@@ -381,10 +381,10 @@ bool wxSetClipboardData(wxDataFormat dataFormat,
|
||||
{
|
||||
wxLogSysError(_("Failed to set clipboard data."));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
void *wxGetClipboardData(wxDataFormat dataFormat, long *len)
|
||||
@@ -534,8 +534,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
|
||||
|
||||
wxClipboard::wxClipboard()
|
||||
{
|
||||
m_clearOnExit = FALSE;
|
||||
m_isOpened = FALSE;
|
||||
m_clearOnExit = false;
|
||||
m_isOpened = false;
|
||||
}
|
||||
|
||||
wxClipboard::~wxClipboard()
|
||||
@@ -563,25 +563,25 @@ bool wxClipboard::Flush()
|
||||
{
|
||||
wxLogLastError(wxT("OleFlushClipboard"));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
m_clearOnExit = FALSE;
|
||||
m_clearOnExit = false;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#else // !wxUSE_OLE_CLIPBOARD
|
||||
return FALSE;
|
||||
return false;
|
||||
#endif // wxUSE_OLE_CLIPBOARD/!wxUSE_OLE_CLIPBOARD
|
||||
}
|
||||
|
||||
bool wxClipboard::Open()
|
||||
{
|
||||
// OLE opens clipboard for us
|
||||
m_isOpened = TRUE;
|
||||
m_isOpened = true;
|
||||
#if wxUSE_OLE_CLIPBOARD
|
||||
return TRUE;
|
||||
return true;
|
||||
#else
|
||||
return wxOpenClipboard();
|
||||
#endif
|
||||
@@ -605,12 +605,12 @@ bool wxClipboard::SetData( wxDataObject *data )
|
||||
if ( data )
|
||||
return AddData(data);
|
||||
else
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxClipboard::AddData( wxDataObject *data )
|
||||
{
|
||||
wxCHECK_MSG( data, FALSE, wxT("data is invalid") );
|
||||
wxCHECK_MSG( data, false, wxT("data is invalid") );
|
||||
|
||||
#if wxUSE_OLE_CLIPBOARD
|
||||
HRESULT hr = OleSetClipboard(data->GetInterface());
|
||||
@@ -620,7 +620,7 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
|
||||
// don't free anything in this case
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// we have a problem here because we should delete wxDataObject, but we
|
||||
@@ -634,11 +634,11 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
// using OLE clipboard when the app terminates - by default, we call
|
||||
// OleSetClipboard(NULL) which won't waste RAM, but the app can call
|
||||
// wxClipboard::Flush() to chaneg this
|
||||
m_clearOnExit = TRUE;
|
||||
m_clearOnExit = true;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
#elif wxUSE_DATAOBJ
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), false, wxT("clipboard not open") );
|
||||
|
||||
wxDataFormat format = data->GetPreferredFormat();
|
||||
|
||||
@@ -666,7 +666,7 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
#if 1
|
||||
// TODO
|
||||
wxLogError(wxT("Not implemented because wxMetafileDataObject does not contain width and height values."));
|
||||
return FALSE;
|
||||
return false;
|
||||
#else
|
||||
wxMetafileDataObject* metaFileDataObject =
|
||||
(wxMetafileDataObject*) data;
|
||||
@@ -684,17 +684,17 @@ bool wxClipboard::AddData( wxDataObject *data )
|
||||
// return wxSetClipboardData(data);
|
||||
// TODO
|
||||
wxLogError(wxT("Not implemented."));
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#else // !wxUSE_DATAOBJ
|
||||
return FALSE;
|
||||
return false;
|
||||
#endif // wxUSE_DATAOBJ/!wxUSE_DATAOBJ
|
||||
}
|
||||
|
||||
void wxClipboard::Close()
|
||||
{
|
||||
m_isOpened = FALSE;
|
||||
m_isOpened = false;
|
||||
// OLE closes clipboard for us
|
||||
#if !wxUSE_OLE_CLIPBOARD
|
||||
wxCloseClipboard();
|
||||
@@ -715,7 +715,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
{
|
||||
wxLogSysError(hr, _("Failed to get data from the clipboard"));
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
// build the list of supported formats
|
||||
@@ -738,7 +738,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
// get the data for the given formats
|
||||
FORMATETC formatEtc;
|
||||
CLIPFORMAT cf;
|
||||
bool result = FALSE;
|
||||
bool result = false;
|
||||
|
||||
// enumerate all explicit formats on the clipboard.
|
||||
// note that this does not include implicit / synthetic (automatically
|
||||
@@ -831,7 +831,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
if ( SUCCEEDED(hr) )
|
||||
{
|
||||
// pass the data to the data object
|
||||
hr = data.GetInterface()->SetData(&formatEtc, &medium, TRUE);
|
||||
hr = data.GetInterface()->SetData(&formatEtc, &medium, true);
|
||||
if ( FAILED(hr) )
|
||||
{
|
||||
wxLogDebug(wxT("Failed to set data in wxIDataObject"));
|
||||
@@ -842,7 +842,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
}
|
||||
else
|
||||
{
|
||||
result = TRUE;
|
||||
result = true;
|
||||
}
|
||||
}
|
||||
//else: unsupported tymed?
|
||||
@@ -859,7 +859,7 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
|
||||
return result;
|
||||
#elif wxUSE_DATAOBJ
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), FALSE, wxT("clipboard not open") );
|
||||
wxCHECK_MSG( wxIsClipboardOpened(), false, wxT("clipboard not open") );
|
||||
|
||||
wxDataFormat format = data.GetPreferredFormat();
|
||||
switch ( format )
|
||||
@@ -870,12 +870,12 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
wxTextDataObject& textDataObject = (wxTextDataObject &)data;
|
||||
char* s = (char*)wxGetClipboardData(format);
|
||||
if ( !s )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
textDataObject.SetText(wxString::FromAscii(s));
|
||||
delete [] s;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
case wxDF_BITMAP:
|
||||
@@ -884,12 +884,12 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
wxBitmapDataObject& bitmapDataObject = (wxBitmapDataObject &)data;
|
||||
wxBitmap* bitmap = (wxBitmap *)wxGetClipboardData(data.GetPreferredFormat());
|
||||
if ( !bitmap )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
bitmapDataObject.SetBitmap(*bitmap);
|
||||
delete bitmap;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#if wxUSE_METAFILE
|
||||
case wxDF_METAFILE:
|
||||
@@ -897,19 +897,19 @@ bool wxClipboard::GetData( wxDataObject& data )
|
||||
wxMetafileDataObject& metaFileDataObject = (wxMetafileDataObject &)data;
|
||||
wxMetafile* metaFile = (wxMetafile *)wxGetClipboardData(wxDF_METAFILE);
|
||||
if ( !metaFile )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
metaFileDataObject.SetMetafile(*metaFile);
|
||||
delete metaFile;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
#endif // wxUSE_METAFILE
|
||||
}
|
||||
return FALSE;
|
||||
return false;
|
||||
#else // !wxUSE_DATAOBJ
|
||||
wxFAIL_MSG( wxT("no clipboard implementation") );
|
||||
return FALSE;
|
||||
return false;
|
||||
#endif // wxUSE_OLE_CLIPBOARD/wxUSE_DATAOBJ
|
||||
}
|
||||
|
||||
|
@@ -117,7 +117,7 @@ bool wxColourDialog::Create(wxWindow *parent, wxColourData *data)
|
||||
if (data)
|
||||
m_colourData = *data;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
int wxColourDialog::ShowModal()
|
||||
@@ -201,10 +201,10 @@ void wxColourDialog::DoSetSize(int x, int y,
|
||||
int WXUNUSED(width), int WXUNUSED(height),
|
||||
int WXUNUSED(sizeFlags))
|
||||
{
|
||||
if ( x != -1 )
|
||||
if ( x != wxDefaultCoord )
|
||||
m_pos.x = x;
|
||||
|
||||
if ( y != -1 )
|
||||
if ( y != wxDefaultCoord )
|
||||
m_pos.y = y;
|
||||
|
||||
// ignore the size params - we can't change the size of a standard dialog
|
||||
|
@@ -275,7 +275,7 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
ProcessCommand(event);
|
||||
}
|
||||
|
||||
return HandleChar(wParam, lParam, TRUE /* isASCII */);
|
||||
return HandleChar(wParam, lParam, true /* isASCII */);
|
||||
|
||||
case WM_KEYDOWN:
|
||||
return HandleKeyDown(wParam, lParam);
|
||||
@@ -290,7 +290,7 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
return HandleKillFocus((WXHWND)wParam);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
@@ -355,8 +355,8 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
||||
}
|
||||
|
||||
// there is no return value for the CBN_ notifications, so always return
|
||||
// FALSE from here to pass the message to DefWindowProc()
|
||||
return FALSE;
|
||||
// false from here to pass the message to DefWindowProc()
|
||||
return false;
|
||||
}
|
||||
|
||||
WXHWND wxComboBox::GetEditHWND() const
|
||||
@@ -393,11 +393,11 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
// pretend that wxComboBox is hidden while it is positioned and resized and
|
||||
// show it only right before leaving this method because otherwise there is
|
||||
// some noticeable flicker while the control rearranges itself
|
||||
m_isShown = FALSE;
|
||||
m_isShown = false;
|
||||
|
||||
if ( !CreateAndInit(parent, id, pos, size, n, choices, style,
|
||||
validator, name) )
|
||||
return FALSE;
|
||||
return false;
|
||||
|
||||
// we shouldn't call SetValue() for an empty string because this would
|
||||
// (correctly) result in an assert with a read only combobox and is useless
|
||||
@@ -415,9 +415,9 @@ bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
}
|
||||
|
||||
// and finally, show the control
|
||||
Show(TRUE);
|
||||
Show(true);
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool wxComboBox::Create(wxWindow *parent, wxWindowID id,
|
||||
|
@@ -1188,7 +1188,7 @@ bool wxCrashReportImpl::Generate(
|
||||
SymSetOptions(SYMOPT_DEFERRED_LOADS | SYMOPT_UNDNAME);
|
||||
|
||||
// Initialize DbgHelp
|
||||
if ( SymInitialize(GetCurrentProcess(), NULL, TRUE /* invade */) )
|
||||
if ( ::SymInitialize(GetCurrentProcess(), NULL, TRUE /* invade */) )
|
||||
{
|
||||
OutputStack(pCtx, flags);
|
||||
|
||||
|
@@ -102,7 +102,7 @@ public:
|
||||
{
|
||||
gs_globalCursor = new wxCursor;
|
||||
|
||||
return TRUE;
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual void OnExit()
|
||||
|
Reference in New Issue
Block a user