2001-06-29 17:16:04 +00: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 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-29 17:16:04 +00:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_MSW_POPUPWIN_H_
|
|
|
|
#define _WX_MSW_POPUPWIN_H_
|
|
|
|
|
2003-08-09 12:38:21 +00:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
2002-05-07 23:27:59 +00:00
|
|
|
#pragma interface "popup.h"
|
|
|
|
#endif
|
|
|
|
|
2001-06-29 17:16:04 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPopupWindow
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxPopupWindow : public wxPopupWindowBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
|
|
|
|
2001-10-12 18:11:46 +00:00
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2001-06-29 17:16:04 +00:00
|
|
|
|
2002-05-07 23:27:59 +00:00
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
2001-11-14 01:35:45 +00:00
|
|
|
|
2004-08-31 12:38:46 +00:00
|
|
|
virtual bool Show(bool show = true);
|
2003-06-17 08:26:01 +00:00
|
|
|
|
2001-11-14 01:35:45 +00:00
|
|
|
protected:
|
2002-05-25 13:02:58 +00:00
|
|
|
// popups handle the position like wxTopLevelWindow, not wxWindow
|
2002-05-07 23:27:59 +00:00
|
|
|
virtual void DoGetPosition(int *x, int *y) const;
|
|
|
|
|
2002-05-25 13:02:58 +00:00
|
|
|
// return the style to be used for the popup windows
|
2002-05-07 23:27:59 +00:00
|
|
|
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
|
2002-01-02 23:18:11 +00:00
|
|
|
|
2002-06-05 23:30:00 +00:00
|
|
|
// get the HWND to be used as parent of this window with CreateWindow()
|
|
|
|
virtual WXHWND MSWGetParent() const;
|
2002-05-25 13:02:58 +00:00
|
|
|
|
2003-07-22 00:24:07 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
|
2001-06-29 17:16:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_MSW_POPUPWIN_H_
|
|
|
|
|