X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/debe6624c1e9d4bf3243381153d1e173c849bcd8..5b077d483bcd47bcd1c3e89a9adc1d6b1a44e046:/include/wx/msw/button.h diff --git a/include/wx/msw/button.h b/include/wx/msw/button.h index d4755612fa..12352beb39 100644 --- a/include/wx/msw/button.h +++ b/include/wx/msw/button.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 __BUTTONH__ -#define __BUTTONH__ +#ifndef _WX_BUTTON_H_ +#define _WX_BUTTON_H_ #ifdef __GNUG__ #pragma interface "button.h" @@ -43,6 +43,10 @@ class WXDLLEXPORT wxButton: public wxControl const wxString& name = wxButtonNameStr); 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 void SetDefault(void); virtual void SetLabel(const wxString& label); virtual wxString GetLabel(void) const ; @@ -53,4 +57,4 @@ class WXDLLEXPORT wxButton: public wxControl }; #endif - // __BUTTONH__ + // _WX_BUTTON_H_