statline.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/statline.h
  3. // Purpose: MSW version of wxStaticLine class
  4. // Author: Vadim Zeitlin
  5. // Created: 28.06.99
  6. // Copyright: (c) 1998 Vadim Zeitlin
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_MSW_STATLINE_H_
  10. #define _WX_MSW_STATLINE_H_
  11. // ----------------------------------------------------------------------------
  12. // wxStaticLine
  13. // ----------------------------------------------------------------------------
  14. class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
  15. {
  16. public:
  17. // constructors and pseudo-constructors
  18. wxStaticLine() { }
  19. wxStaticLine( wxWindow *parent,
  20. wxWindowID id = wxID_ANY,
  21. const wxPoint& pos = wxDefaultPosition,
  22. const wxSize& size = wxDefaultSize,
  23. long style = wxLI_HORIZONTAL,
  24. const wxString &name = wxStaticLineNameStr )
  25. {
  26. Create(parent, id, pos, size, style, name);
  27. }
  28. bool Create( wxWindow *parent,
  29. wxWindowID id = wxID_ANY,
  30. const wxPoint& pos = wxDefaultPosition,
  31. const wxSize& size = wxDefaultSize,
  32. long style = wxLI_HORIZONTAL,
  33. const wxString &name = wxStaticLineNameStr );
  34. // overridden base class virtuals
  35. virtual bool AcceptsFocus() const { return false; }
  36. // usually overridden base class virtuals
  37. virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
  38. DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticLine)
  39. };
  40. #endif // _WX_MSW_STATLINE_H_