minifram.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/minifram.h
  3. // Purpose: wxMiniFrame class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 01/02/97
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_MINIFRAM_H_
  11. #define _WX_MINIFRAM_H_
  12. #include "wx/frame.h"
  13. class WXDLLIMPEXP_CORE wxMiniFrame : public wxFrame
  14. {
  15. public:
  16. wxMiniFrame() { }
  17. bool Create(wxWindow *parent,
  18. wxWindowID id,
  19. const wxString& title,
  20. const wxPoint& pos = wxDefaultPosition,
  21. const wxSize& size = wxDefaultSize,
  22. long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER,
  23. const wxString& name = wxFrameNameStr)
  24. {
  25. return wxFrame::Create(parent, id, title, pos, size,
  26. style |
  27. wxFRAME_TOOL_WINDOW |
  28. (parent ? wxFRAME_FLOAT_ON_PARENT : 0), name);
  29. }
  30. wxMiniFrame(wxWindow *parent,
  31. wxWindowID id,
  32. const wxString& title,
  33. const wxPoint& pos = wxDefaultPosition,
  34. const wxSize& size = wxDefaultSize,
  35. long style = wxCAPTION | wxCLIP_CHILDREN | wxRESIZE_BORDER,
  36. const wxString& name = wxFrameNameStr)
  37. {
  38. Create(parent, id, title, pos, size, style, name);
  39. }
  40. protected:
  41. DECLARE_DYNAMIC_CLASS_NO_COPY(wxMiniFrame)
  42. };
  43. #endif
  44. // _WX_MINIFRAM_H_