X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..17b74d79adcc7bbd5cff4ed500e267289c0083a7:/include/wx/msw/checkbox.h diff --git a/include/wx/msw/checkbox.h b/include/wx/msw/checkbox.h index 553224d02c..1234ccc432 100644 --- a/include/wx/msw/checkbox.h +++ b/include/wx/msw/checkbox.h @@ -5,12 +5,12 @@ // Modified by: // Created: 01/02/97 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __CHECKBOXH__ -#define __CHECKBOXH__ +#ifndef _WX_CHECKBOX_H_ +#define _WX_CHECKBOX_H_ #ifdef __GNUG__ #pragma interface "checkbox.h" @@ -45,6 +45,10 @@ class WXDLLEXPORT wxCheckBox: public wxControl virtual void SetValue(bool); virtual bool GetValue(void) const ; virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + virtual bool MSWCommand(WXUINT param, WXWORD id); virtual void SetLabel(const wxString& label); virtual void Command(wxCommandEvent& event); @@ -78,7 +82,11 @@ class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox virtual void SetValue(bool); virtual bool GetValue(void) const ; virtual void SetSize(int x, int y, int width, int height, int sizeFlags = wxSIZE_AUTO); - virtual void SetLabel(const wxBitmap *bitmap); + void SetSize(const wxRect& rect, int sizeFlags = wxSIZE_AUTO) + { wxWindow::SetSize(rect, sizeFlags); } + void SetSize(const wxSize& size) { wxWindow::SetSize(size); } + + virtual void SetLabel(const wxBitmap& bitmap); }; #endif - // __CHECKBOXH__ + // _WX_CHECKBOX_H_