2001-06-29 13:16:04 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/msw/popupwin.h
|
|
|
|
// Purpose: wxPopupWindow class for wxMSW
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Modified by:
|
|
|
|
// Created: 06.01.01
|
|
|
|
// Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-06-29 13:16:04 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSW_POPUPWIN_H_
|
|
|
|
#define _WX_MSW_POPUPWIN_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPopupWindow
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
|
2001-06-29 13:16:04 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
|
|
|
|
2001-10-12 14:11:46 -04:00
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2001-06-29 13:16:04 -04:00
|
|
|
|
2002-05-07 19:27:59 -04:00
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
2001-11-13 20:35:45 -05:00
|
|
|
|
2013-08-18 09:28:13 -04:00
|
|
|
virtual void SetFocus();
|
2004-08-31 08:38:46 -04:00
|
|
|
virtual bool Show(bool show = true);
|
2003-06-17 04:26:01 -04:00
|
|
|
|
2002-05-25 09:02:58 -04:00
|
|
|
// return the style to be used for the popup windows
|
2002-05-07 19:27:59 -04:00
|
|
|
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
|
2002-01-02 18:18:11 -05:00
|
|
|
|
2002-06-05 19:30:00 -04:00
|
|
|
// get the HWND to be used as parent of this window with CreateWindow()
|
|
|
|
virtual WXHWND MSWGetParent() const;
|
2002-05-25 09:02:58 -04:00
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2015-04-23 07:49:01 -04:00
|
|
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow);
|
2001-06-29 13:16:04 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSW_POPUPWIN_H_
|
|
|
|
|