popupwin.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/msw/popupwin.h
  3. // Purpose: wxPopupWindow class for wxMSW
  4. // Author: Vadim Zeitlin
  5. // Modified by:
  6. // Created: 06.01.01
  7. // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
  8. // Licence: wxWindows licence
  9. ///////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_MSW_POPUPWIN_H_
  11. #define _WX_MSW_POPUPWIN_H_
  12. // ----------------------------------------------------------------------------
  13. // wxPopupWindow
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
  16. {
  17. public:
  18. wxPopupWindow() { }
  19. wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
  20. { (void)Create(parent, flags); }
  21. bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
  22. virtual void SetFocus();
  23. virtual bool Show(bool show = true);
  24. // return the style to be used for the popup windows
  25. virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
  26. // get the HWND to be used as parent of this window with CreateWindow()
  27. virtual WXHWND MSWGetParent() const;
  28. protected:
  29. virtual void DoGetPosition(int *x, int *y) const;
  30. DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
  31. };
  32. #endif // _WX_MSW_POPUPWIN_H_