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
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSW_POPUPWIN_H_
|
|
|
|
#define _WX_MSW_POPUPWIN_H_
|
|
|
|
|
2002-05-07 19:27:59 -04:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface "popup.h"
|
|
|
|
#endif
|
|
|
|
|
2001-06-29 13:16:04 -04:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPopupWindow
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPopupWindow : public wxPopupWindowBase
|
|
|
|
{
|
|
|
|
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
|
|
|
|
2003-06-17 04:26:01 -04:00
|
|
|
virtual bool Show(bool show = TRUE);
|
|
|
|
|
2001-11-13 20:35:45 -05:00
|
|
|
protected:
|
2002-05-25 09:02:58 -04:00
|
|
|
// popups handle the position like wxTopLevelWindow, not wxWindow
|
2002-05-07 19:27:59 -04:00
|
|
|
virtual void DoGetPosition(int *x, int *y) const;
|
|
|
|
|
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
|
|
|
|
2002-01-02 18:18:11 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
2001-06-29 13:16:04 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSW_POPUPWIN_H_
|
|
|
|
|