}
}
-bool wxPopupWindow::Create(wxWindow *parent, int flags)
+bool wxPopupWindow::Create(wxWindow *parent, int WXUNUSED(flags))
{
m_macIsUserPane = false ;
WindowClass wclass = kHelpWindowClass;
WindowAttributes attr = kWindowCompositingAttribute ;
- WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
Rect bounds = { 0,0,0,0 };
OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
if ( err == noErr )
{
-// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
+#if 0
+ WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
+ SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
+#endif
}
m_peer = new wxMacControl(this , true /*isRootControl*/) ;
// because apps expect a size event to occur at this moment
wxSizeEvent event(GetSize() , m_windowId);
event.SetEventObject(this);
- GetEventHandler()->ProcessEvent(event);
+ HandleWindowEvent(event);
}
else
{