GetMacXXXX to MacGetXXXX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -399,7 +399,7 @@ void wxToolBar::MacSuperChangedPosition()
|
|||||||
int maxHeight = 0 ;
|
int maxHeight = 0 ;
|
||||||
int toolcount = 0 ;
|
int toolcount = 0 ;
|
||||||
{
|
{
|
||||||
WindowRef rootwindow = GetMacRootWindow() ;
|
WindowRef rootwindow = MacGetRootWindow() ;
|
||||||
wxWindow* wxrootwindow = wxFindWinFromMacWindow( rootwindow ) ;
|
wxWindow* wxrootwindow = wxFindWinFromMacWindow( rootwindow ) ;
|
||||||
::SetThemeWindowBackground( rootwindow , kThemeBrushDialogBackgroundActive , false ) ;
|
::SetThemeWindowBackground( rootwindow , kThemeBrushDialogBackgroundActive , false ) ;
|
||||||
wxMacDrawingHelper focus( wxrootwindow ) ;
|
wxMacDrawingHelper focus( wxrootwindow ) ;
|
||||||
@@ -594,9 +594,9 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
|||||||
wxWindow* parent = GetParent() ;
|
wxWindow* parent = GetParent() ;
|
||||||
while ( parent )
|
while ( parent )
|
||||||
{
|
{
|
||||||
if( parent->MacGetWindowData() )
|
if( parent->IsTopLevel() )
|
||||||
{
|
{
|
||||||
::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , kThemeBrushDialogBackgroundActive , false ) ;
|
// ::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , kThemeBrushDialogBackgroundActive , false ) ;
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,13 +624,12 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
|
// ::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxToolBar::OnMouse( wxMouseEvent &event )
|
void wxToolBar::OnMouse( wxMouseEvent &event )
|
||||||
{
|
{
|
||||||
|
|
||||||
if (event.GetEventType() == wxEVT_LEFT_DOWN || event.GetEventType() == wxEVT_LEFT_DCLICK )
|
if (event.GetEventType() == wxEVT_LEFT_DOWN || event.GetEventType() == wxEVT_LEFT_DCLICK )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -643,7 +642,7 @@ void wxToolBar::OnMouse( wxMouseEvent &event )
|
|||||||
Point localwhere ;
|
Point localwhere ;
|
||||||
GrafPtr port ;
|
GrafPtr port ;
|
||||||
SInt16 controlpart ;
|
SInt16 controlpart ;
|
||||||
WindowRef window = GetMacRootWindow() ;
|
WindowRef window = MacGetRootWindow() ;
|
||||||
|
|
||||||
localwhere.h = x ;
|
localwhere.h = x ;
|
||||||
localwhere.v = y ;
|
localwhere.v = y ;
|
||||||
|
@@ -399,7 +399,7 @@ void wxToolBar::MacSuperChangedPosition()
|
|||||||
int maxHeight = 0 ;
|
int maxHeight = 0 ;
|
||||||
int toolcount = 0 ;
|
int toolcount = 0 ;
|
||||||
{
|
{
|
||||||
WindowRef rootwindow = GetMacRootWindow() ;
|
WindowRef rootwindow = MacGetRootWindow() ;
|
||||||
wxWindow* wxrootwindow = wxFindWinFromMacWindow( rootwindow ) ;
|
wxWindow* wxrootwindow = wxFindWinFromMacWindow( rootwindow ) ;
|
||||||
::SetThemeWindowBackground( rootwindow , kThemeBrushDialogBackgroundActive , false ) ;
|
::SetThemeWindowBackground( rootwindow , kThemeBrushDialogBackgroundActive , false ) ;
|
||||||
wxMacDrawingHelper focus( wxrootwindow ) ;
|
wxMacDrawingHelper focus( wxrootwindow ) ;
|
||||||
@@ -594,9 +594,9 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
|||||||
wxWindow* parent = GetParent() ;
|
wxWindow* parent = GetParent() ;
|
||||||
while ( parent )
|
while ( parent )
|
||||||
{
|
{
|
||||||
if( parent->MacGetWindowData() )
|
if( parent->IsTopLevel() )
|
||||||
{
|
{
|
||||||
::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , kThemeBrushDialogBackgroundActive , false ) ;
|
// ::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , kThemeBrushDialogBackgroundActive , false ) ;
|
||||||
break ;
|
break ;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,13 +624,12 @@ void wxToolBar::OnPaint(wxPaintEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
|
// ::SetThemeWindowBackground( win->MacGetWindowData()->m_macWindow , win->MacGetWindowData()->m_macWindowBackgroundTheme , false ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxToolBar::OnMouse( wxMouseEvent &event )
|
void wxToolBar::OnMouse( wxMouseEvent &event )
|
||||||
{
|
{
|
||||||
|
|
||||||
if (event.GetEventType() == wxEVT_LEFT_DOWN || event.GetEventType() == wxEVT_LEFT_DCLICK )
|
if (event.GetEventType() == wxEVT_LEFT_DOWN || event.GetEventType() == wxEVT_LEFT_DCLICK )
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -643,7 +642,7 @@ void wxToolBar::OnMouse( wxMouseEvent &event )
|
|||||||
Point localwhere ;
|
Point localwhere ;
|
||||||
GrafPtr port ;
|
GrafPtr port ;
|
||||||
SInt16 controlpart ;
|
SInt16 controlpart ;
|
||||||
WindowRef window = GetMacRootWindow() ;
|
WindowRef window = MacGetRootWindow() ;
|
||||||
|
|
||||||
localwhere.h = x ;
|
localwhere.h = x ;
|
||||||
localwhere.v = y ;
|
localwhere.v = y ;
|
||||||
|
Reference in New Issue
Block a user