projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tinderbox build fix.
[wxWidgets.git]
/
src
/
msw
/
checkbox.cpp
diff --git
a/src/msw/checkbox.cpp
b/src/msw/checkbox.cpp
index 07cc434de2ca2eb3eb2652ab7aec25ef4138ca1b..4a11fa5c469ebe02d04a9f29ed72661cc4610c07 100644
(file)
--- a/
src/msw/checkbox.cpp
+++ b/
src/msw/checkbox.cpp
@@
-1,5
+1,5
@@
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/checkbox.cpp
+// Name:
src/
msw/checkbox.cpp
// Purpose: wxCheckBox
// Author: Julian Smart
// Modified by:
// Purpose: wxCheckBox
// Author: Julian Smart
// Modified by:
@@
-17,10
+17,6
@@
// headers
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation "checkbox.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
@@
-30,8
+26,9
@@
#if wxUSE_CHECKBOX
#if wxUSE_CHECKBOX
+#include "wx/checkbox.h"
+
#ifndef WX_PRECOMP
#ifndef WX_PRECOMP
- #include "wx/checkbox.h"
#include "wx/brush.h"
#include "wx/dcscreen.h"
#include "wx/settings.h"
#include "wx/brush.h"
#include "wx/dcscreen.h"
#include "wx/settings.h"
@@
-216,9
+213,9
@@
wxSize wxCheckBox::DoGetBestSize() const
wxString str = wxGetWindowText(GetHWND());
int wCheckbox, hCheckbox;
wxString str = wxGetWindowText(GetHWND());
int wCheckbox, hCheckbox;
- if ( !str.
IsE
mpty() )
+ if ( !str.
e
mpty() )
{
{
- GetTextExtent(
str
, &wCheckbox, &hCheckbox);
+ GetTextExtent(
GetLabelText(str)
, &wCheckbox, &hCheckbox);
wCheckbox += s_checkSize + GetCharWidth();
if ( hCheckbox < s_checkSize )
wCheckbox += s_checkSize + GetCharWidth();
if ( hCheckbox < s_checkSize )