home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / include / wx / os2 / statbox.h < prev    next >
C/C++ Source or Header  |  2002-01-14  |  2KB  |  67 lines

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