fixing shape windows, as we now use the structure region for answering questions about position and size, we cannot use GetRect in the defproc anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -406,7 +406,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
|
|||||||
{
|
{
|
||||||
ControlPartCode part ;
|
ControlPartCode part ;
|
||||||
ControlRef control = wxMacFindControlUnderMouse( windowMouseLocation , window , &part ) ;
|
ControlRef control = wxMacFindControlUnderMouse( windowMouseLocation , window , &part ) ;
|
||||||
currentMouseWindow = wxFindControlFromMacControl( control ) ;
|
if ( control == 0 )
|
||||||
|
currentMouseWindow = (wxWindow*) data ;
|
||||||
|
else
|
||||||
|
currentMouseWindow = wxFindControlFromMacControl( control ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -966,7 +969,7 @@ void wxTopLevelWindowMac::MacCreateRealWindow( const wxString& title,
|
|||||||
// the frame window event handler
|
// the frame window event handler
|
||||||
InstallStandardEventHandler( GetWindowEventTarget(MAC_WXHWND(m_macWindow)) ) ;
|
InstallStandardEventHandler( GetWindowEventTarget(MAC_WXHWND(m_macWindow)) ) ;
|
||||||
MacInstallTopLevelWindowEventHandler() ;
|
MacInstallTopLevelWindowEventHandler() ;
|
||||||
|
|
||||||
m_macFocus = NULL ;
|
m_macFocus = NULL ;
|
||||||
|
|
||||||
if ( HasFlag(wxFRAME_SHAPED) )
|
if ( HasFlag(wxFRAME_SHAPED) )
|
||||||
@@ -1213,8 +1216,9 @@ static void wxShapedMacWindowContentRegion(WindowRef window, RgnHandle rgn)
|
|||||||
wxTopLevelWindowMac* win = wxFindWinFromMacWindow(window);
|
wxTopLevelWindowMac* win = wxFindWinFromMacWindow(window);
|
||||||
if (win)
|
if (win)
|
||||||
{
|
{
|
||||||
wxRect r = win->GetRect();
|
Rect r ;
|
||||||
SetRectRgn(rgn, r.GetLeft(), r.GetTop(), r.GetRight(), r.GetBottom());
|
wxShapedMacWindowGetPos(window, &r ) ;
|
||||||
|
RectRgn( rgn , &r ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user