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>
|
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_
|
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-05-07 19:27:59 -04:00
|
|
|
#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
|
|
|
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
|
2001-06-29 13:16:04 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSW_POPUPWIN_H_
|
|
|
|
|