- virtual void DoGetPosition(int *x, int *y) const
- {
- // the position of a "top level" window such as this should be in
- // screen coordinates, not in the client ones which MSW gives us
- // (because we are a child window)
- wxPopupWindowBase::DoGetPosition(x, y);
-
- GetParent()->ClientToScreen(x, y);
- }
+ // popups handle the position like wxTopLevelWindow, not wxWindow
+ virtual void DoGetPosition(int *x, int *y) const;
+
+ // return the style to be used for the popup windows
+ virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
+
+ // get the HWND to be used as parent of this window with CreateWindow()
+ virtual WXHWND MSWGetParent() const;