statbox.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/os2/statbox.h
  3. // Purpose: wxStaticBox class
  4. // Author: David Webster
  5. // Modified by:
  6. // Created: 10/15/99
  7. // Copyright: (c) David Webster
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_STATBOX_H_
  11. #define _WX_STATBOX_H_
  12. #include "wx/control.h"
  13. // Group box
  14. class WXDLLIMPEXP_CORE wxStaticBox : public wxStaticBoxBase
  15. {
  16. public:
  17. inline wxStaticBox() {}
  18. inline wxStaticBox( wxWindow* pParent
  19. ,wxWindowID vId
  20. ,const wxString& rsLabel
  21. ,const wxPoint& rPos = wxDefaultPosition
  22. ,const wxSize& rSize = wxDefaultSize
  23. ,long lStyle = 0
  24. ,const wxString& rsName = wxStaticBoxNameStr
  25. )
  26. {
  27. Create(pParent, vId, rsLabel, rPos, rSize, lStyle, rsName);
  28. }
  29. bool Create( wxWindow* pParent
  30. ,wxWindowID vId
  31. ,const wxString& rsLabel
  32. ,const wxPoint& rPos = wxDefaultPosition
  33. ,const wxSize& rSize = wxDefaultSize
  34. ,long lStyle = 0
  35. ,const wxString& rsName = wxStaticBoxNameStr
  36. );
  37. //
  38. // implementation from now on
  39. // --------------------------
  40. //
  41. virtual MRESULT OS2WindowProc( WXUINT uMsg
  42. ,WXWPARAM wParam
  43. ,WXLPARAM lParam
  44. );
  45. //
  46. // overridden base class virtuals
  47. //
  48. inline virtual bool AcceptsFocus(void) const { return FALSE; }
  49. protected:
  50. virtual wxSize DoGetBestSize(void) const;
  51. private:
  52. DECLARE_DYNAMIC_CLASS(wxStaticBox)
  53. }; // end of CLASS wxStaticBox
  54. #endif
  55. // _WX_STATBOX_H_