X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..7b4a652a8bf3da1b2dd20dd22c9e6db5dd03db59:/include/wx/univ/statbox.h diff --git a/include/wx/univ/statbox.h b/include/wx/univ/statbox.h index 2e49e1a9db..c4578fa6c2 100644 --- a/include/wx/univ/statbox.h +++ b/include/wx/univ/statbox.h @@ -12,7 +12,7 @@ #ifndef _WX_UNIV_STATBOX_H_ #define _WX_UNIV_STATBOX_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "univstatbox.h" #endif @@ -26,7 +26,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize) { - Create(parent, -1, label, pos, size); + Create(parent, wxID_ANY, label, pos, size); } wxStaticBox(wxWindow *parent, wxWindowID id, @@ -51,8 +51,6 @@ public: // take account of this virtual wxPoint GetBoxAreaOrigin() const; - virtual bool HasTransparentBackground() { return TRUE; } - protected: // draw the control virtual void DoDraw(wxControlRenderer *renderer); @@ -60,9 +58,9 @@ protected: // get the size of the border wxRect GetBorderGeometry() const; - // returning TRUE from here ensures that we act as a container window for + // returning true from here ensures that we act as a container window for // our children - virtual bool IsStaticBox() const { return TRUE; } + virtual bool IsStaticBox() const { return true; } private: DECLARE_DYNAMIC_CLASS(wxStaticBox)