popupwin.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/os2/popupwin.h
  3. // Purpose: wxPopupWindow class for wxPM
  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_PM_POPUPWIN_H_
  11. #define _WX_PM_POPUPWIN_H_
  12. // ----------------------------------------------------------------------------
  13. // wxPopupWindow
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
  16. {
  17. public:
  18. wxPopupWindow() { }
  19. wxPopupWindow( wxWindow* pParent
  20. ,int nFlags
  21. )
  22. { (void)Create(pParent, nFlags); }
  23. bool Create( wxWindow* pParent
  24. ,int nFlags = wxBORDER_NONE
  25. );
  26. //
  27. // Implementation only from now on
  28. // -------------------------------
  29. //
  30. protected:
  31. virtual void DoGetPosition( int* pnX
  32. ,int* pny
  33. ) const;
  34. virtual WXDWORD OS2GetStyle( long lFlags
  35. ,WXDWORD* dwExstyle
  36. ) const;
  37. //
  38. // Get the HWND to be used as parent of this window with CreateWindow()
  39. //
  40. virtual WXHWND OS2GetParent(void) const;
  41. //
  42. // The list of all currently shown popup windows used by FindPopupFor()
  43. //
  44. static wxWindowList m_svShownPopups;
  45. DECLARE_DYNAMIC_CLASS(wxPopupWindow)
  46. }; // end of CLASS wxPopupWindow
  47. #endif // _WX_PM_POPUPWIN_H_