/////////////////////////////////////////////////////////////////////////////
-// Name: msw/checkbox.cpp
+// Name: src/msw/checkbox.cpp
// Purpose: wxCheckBox
// Author: Julian Smart
// Modified by:
#if wxUSE_CHECKBOX
+#include "wx/checkbox.h"
+
#ifndef WX_PRECOMP
- #include "wx/checkbox.h"
#include "wx/brush.h"
#include "wx/dcscreen.h"
#include "wx/settings.h"
wxString str = wxGetWindowText(GetHWND());
int wCheckbox, hCheckbox;
- if ( !str.IsEmpty() )
+ if ( !str.empty() )
{
- GetTextExtent(str, &wCheckbox, &hCheckbox);
+ GetTextExtent(GetLabelText(str), &wCheckbox, &hCheckbox);
wCheckbox += s_checkSize + GetCharWidth();
if ( hCheckbox < s_checkSize )