X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f11220943f14b4bb5190db0dfd0054304f5015c..a737331db68b754c8bf31fa0a15f6d1f207b40bf:/src/msw/checkbox.cpp diff --git a/src/msw/checkbox.cpp b/src/msw/checkbox.cpp index 3d6baa551f..436706ad41 100644 --- a/src/msw/checkbox.cpp +++ b/src/msw/checkbox.cpp @@ -118,7 +118,7 @@ void wxCheckBox::SetLabel(const wxString& label) SetWindowText((HWND)GetHWND(), label); } -void wxCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags) +void wxCheckBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) { int currentX, currentY; GetPosition(¤tX, ¤tY); @@ -174,7 +174,7 @@ void wxCheckBox::SetValue(bool val) #define BST_CHECKED 0x0001 #endif -bool wxCheckBox::GetValue(void) const +bool wxCheckBox::GetValue() const { #ifdef __WIN32__ return (SendMessage((HWND) GetHWND(), BM_GETCHECK, 0, 0) == BST_CHECKED); @@ -271,11 +271,11 @@ bool wxBitmapCheckBox::Create(wxWindow *parent, wxWindowID id, const wxBitmap *l return TRUE; } -void wxBitmapCheckBox::SetLabel(const wxBitmap *bitmap) +void wxBitmapCheckBox::SetLabel(const wxBitmap& bitmap) { } -void wxBitmapCheckBox::SetSize(int x, int y, int width, int height, int sizeFlags) +void wxBitmapCheckBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) { int currentX, currentY; GetPosition(¤tX, ¤tY); @@ -307,7 +307,7 @@ void wxBitmapCheckBox::SetValue(bool val) SendMessage((HWND) GetHWND(), BM_SETCHECK, val, 0); } -bool wxBitmapCheckBox::GetValue(void) const +bool wxBitmapCheckBox::GetValue() const { return ((0x003 & SendMessage((HWND) GetHWND(), BM_GETCHECK, 0, 0)) == 0x003); }