X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/371a5b4e62eb415107e045588f614fa49e866e78..44ac608d142da51fd7f70c35146245b197749b2e:/include/wx/univ/statbox.h diff --git a/include/wx/univ/statbox.h b/include/wx/univ/statbox.h index 2e49e1a9db..cdc8223bdc 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,7 +51,7 @@ public: // take account of this virtual wxPoint GetBoxAreaOrigin() const; - virtual bool HasTransparentBackground() { return TRUE; } + virtual bool HasTransparentBackground() { return true; } protected: // draw the control @@ -60,9 +60,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)