X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5a6371b940e970417874b2b3895c27a92e8f0871..8f2ee25db4652f96f28bc8f8370bebc974e533ff:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 681c4e5a10..a43947cc5c 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -67,7 +67,7 @@ wxBEGIN_FLAGS( wxCheckBoxStyle ) wxFLAGS_MEMBER(wxBORDER_RAISED) wxFLAGS_MEMBER(wxBORDER_STATIC) wxFLAGS_MEMBER(wxBORDER_NONE) - + // old style border flags wxFLAGS_MEMBER(wxSIMPLE_BORDER) wxFLAGS_MEMBER(wxSUNKEN_BORDER) @@ -102,7 +102,7 @@ wxEND_PROPERTIES_TABLE() wxBEGIN_HANDLERS_TABLE(wxCheckBox) wxEND_HANDLERS_TABLE() -wxCONSTRUCTOR_6( wxCheckBox , wxWindow* , Parent , wxWindowID , Id , wxString , Label , wxPoint , Position , wxSize , Size , long , WindowStyle ) +wxCONSTRUCTOR_6( wxCheckBox , wxWindow* , Parent , wxWindowID , Id , wxString , Label , wxPoint , Position , wxSize , Size , long , WindowStyle ) #else IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl) #endif @@ -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; @@ -201,6 +201,11 @@ wxSize wxCheckBox::DoGetBestSize() const return wxSize(wCheckbox, hCheckbox); } +WXHBRUSH wxCheckBox::MSWGetDefaultBgBrush() +{ + return ::GetStockObject(NULL_BRUSH); +} + void wxCheckBox::SetValue(bool val) { if (val)