old style casts for no-rtti builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -617,7 +617,7 @@ void wxDC::DoDrawBitmap( const wxBitmap &bmp, wxCoord x, wxCoord y, bool useMask
|
|||||||
wxCoord ww = XLOG2DEVREL(w);
|
wxCoord ww = XLOG2DEVREL(w);
|
||||||
wxCoord hh = YLOG2DEVREL(h);
|
wxCoord hh = YLOG2DEVREL(h);
|
||||||
|
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGImageRef image = (CGImageRef)( bmp.CGImageCreate() ) ;
|
CGImageRef image = (CGImageRef)( bmp.CGImageCreate() ) ;
|
||||||
HIRect r = CGRectMake( xx , yy , ww , hh ) ;
|
HIRect r = CGRectMake( xx , yy , ww , hh ) ;
|
||||||
HIViewDrawCGImage( cg , &r , image ) ;
|
HIViewDrawCGImage( cg , &r , image ) ;
|
||||||
@@ -636,7 +636,7 @@ void wxDC::DoDrawIcon( const wxIcon &icon, wxCoord x, wxCoord y )
|
|||||||
wxCoord ww = XLOG2DEVREL(w);
|
wxCoord ww = XLOG2DEVREL(w);
|
||||||
wxCoord hh = YLOG2DEVREL(h);
|
wxCoord hh = YLOG2DEVREL(h);
|
||||||
|
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGRect r = CGRectMake( 00 , 00 , ww , hh ) ;
|
CGRect r = CGRectMake( 00 , 00 , ww , hh ) ;
|
||||||
CGContextSaveGState(cg);
|
CGContextSaveGState(cg);
|
||||||
CGContextTranslateCTM(cg, xx , yy + hh );
|
CGContextTranslateCTM(cg, xx , yy + hh );
|
||||||
@@ -655,7 +655,7 @@ void wxDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord hei
|
|||||||
ww = XLOG2DEVREL(width);
|
ww = XLOG2DEVREL(width);
|
||||||
hh = YLOG2DEVREL(height);
|
hh = YLOG2DEVREL(height);
|
||||||
|
|
||||||
CGContextRef cgContext = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cgContext = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGRect clipRect = CGRectMake( xx ,yy , ww, hh ) ;
|
CGRect clipRect = CGRectMake( xx ,yy , ww, hh ) ;
|
||||||
CGContextClipToRect( cgContext , clipRect ) ;
|
CGContextClipToRect( cgContext , clipRect ) ;
|
||||||
|
|
||||||
@@ -732,7 +732,7 @@ void wxDC::DoSetClippingRegionAsRegion( const wxRegion ®ion )
|
|||||||
void wxDC::DestroyClippingRegion()
|
void wxDC::DestroyClippingRegion()
|
||||||
{
|
{
|
||||||
// CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
|
// CopyRgn( (RgnHandle) m_macBoundaryClipRgn , (RgnHandle) m_macCurrentClipRgn ) ;
|
||||||
CGContextRef cgContext = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cgContext = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGContextRestoreGState( cgContext );
|
CGContextRestoreGState( cgContext );
|
||||||
CGContextSaveGState( cgContext );
|
CGContextSaveGState( cgContext );
|
||||||
SetPen( m_pen ) ;
|
SetPen( m_pen ) ;
|
||||||
@@ -1321,7 +1321,7 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
|||||||
}
|
}
|
||||||
if ( blit.Ok() )
|
if ( blit.Ok() )
|
||||||
{
|
{
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGImageRef image = (CGImageRef)( blit.CGImageCreate() ) ;
|
CGImageRef image = (CGImageRef)( blit.CGImageCreate() ) ;
|
||||||
HIRect r = CGRectMake( xxdest , yydest , wwdest , hhdest ) ;
|
HIRect r = CGRectMake( xxdest , yydest , wwdest , hhdest ) ;
|
||||||
HIViewDrawCGImage( cg , &r , image ) ;
|
HIViewDrawCGImage( cg , &r , image ) ;
|
||||||
@@ -1332,7 +1332,7 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(source->GetGraphicContext())->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(source->GetGraphicContext())->GetNativeContext() ;
|
||||||
void *data = CGBitmapContextGetData( cg ) ;
|
void *data = CGBitmapContextGetData( cg ) ;
|
||||||
*/
|
*/
|
||||||
return FALSE ; // wxFAIL_MSG( wxT("Blitting is only supported from bitmap contexts") ) ;
|
return FALSE ; // wxFAIL_MSG( wxT("Blitting is only supported from bitmap contexts") ) ;
|
||||||
@@ -1410,7 +1410,7 @@ void wxDC::DoDrawRotatedText(const wxString& str, wxCoord x, wxCoord y,
|
|||||||
atsuTags, atsuSizes, atsuValues ) ;
|
atsuTags, atsuSizes, atsuValues ) ;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
CGContextRef cgContext = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cgContext = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
ATSUAttributeTag atsuTags[] =
|
ATSUAttributeTag atsuTags[] =
|
||||||
{
|
{
|
||||||
kATSUCGContextTag ,
|
kATSUCGContextTag ,
|
||||||
@@ -1465,13 +1465,13 @@ void wxDC::DoDrawRotatedText(const wxString& str, wxCoord x, wxCoord y,
|
|||||||
IntToFixed(drawX) , IntToFixed(drawY) , &rect );
|
IntToFixed(drawX) , IntToFixed(drawY) , &rect );
|
||||||
wxASSERT_MSG( status == noErr , wxT("couldn't measure the rotated text") );
|
wxASSERT_MSG( status == noErr , wxT("couldn't measure the rotated text") );
|
||||||
|
|
||||||
CGContextSaveGState(dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext());
|
CGContextSaveGState((wxMacCGContext*)(m_graphicContext)->GetNativeContext());
|
||||||
CGContextTranslateCTM(dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext(), drawX, drawY);
|
CGContextTranslateCTM((wxMacCGContext*)(m_graphicContext)->GetNativeContext(), drawX, drawY);
|
||||||
CGContextScaleCTM(dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext(), 1, -1);
|
CGContextScaleCTM((wxMacCGContext*)(m_graphicContext)->GetNativeContext(), 1, -1);
|
||||||
status = ::ATSUDrawText( atsuLayout, kATSUFromTextBeginning, kATSUToTextEnd,
|
status = ::ATSUDrawText( atsuLayout, kATSUFromTextBeginning, kATSUToTextEnd,
|
||||||
IntToFixed(0) , IntToFixed(0) );
|
IntToFixed(0) , IntToFixed(0) );
|
||||||
wxASSERT_MSG( status == noErr , wxT("couldn't draw the rotated text") );
|
wxASSERT_MSG( status == noErr , wxT("couldn't draw the rotated text") );
|
||||||
CGContextRestoreGState( dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ) ;
|
CGContextRestoreGState( (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ) ;
|
||||||
|
|
||||||
CalcBoundingBox(XDEV2LOG(rect.left), YDEV2LOG(rect.top) );
|
CalcBoundingBox(XDEV2LOG(rect.left), YDEV2LOG(rect.top) );
|
||||||
CalcBoundingBox(XDEV2LOG(rect.right), YDEV2LOG(rect.bottom) );
|
CalcBoundingBox(XDEV2LOG(rect.right), YDEV2LOG(rect.bottom) );
|
||||||
@@ -1656,7 +1656,7 @@ void wxDC::Clear(void)
|
|||||||
if ( m_backgroundBrush.Ok() && m_backgroundBrush.GetStyle() != wxTRANSPARENT)
|
if ( m_backgroundBrush.Ok() && m_backgroundBrush.GetStyle() != wxTRANSPARENT)
|
||||||
{
|
{
|
||||||
HIRect rect = CGRectMake( -10000 , -10000 , 20000 , 20000 ) ;
|
HIRect rect = CGRectMake( -10000 , -10000 , 20000 , 20000 ) ;
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
switch( m_backgroundBrush.MacGetBrushKind() )
|
switch( m_backgroundBrush.MacGetBrushKind() )
|
||||||
{
|
{
|
||||||
case kwxMacBrushTheme :
|
case kwxMacBrushTheme :
|
||||||
|
@@ -234,7 +234,7 @@ wxClientDC::~wxClientDC()
|
|||||||
/*
|
/*
|
||||||
if ( m_window->MacGetCGContextRef() == 0)
|
if ( m_window->MacGetCGContextRef() == 0)
|
||||||
{
|
{
|
||||||
CGContextRef cgContext = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef cgContext = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
CGContextFlush( cgContext ) ;
|
CGContextFlush( cgContext ) ;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
@@ -52,7 +52,7 @@ wxMemoryDC::~wxMemoryDC()
|
|||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
m_selected.EndRawAccess() ;
|
m_selected.EndRawAccess() ;
|
||||||
CGContextRef bmCtx = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
delete m_graphicContext ;
|
delete m_graphicContext ;
|
||||||
m_graphicContext = NULL ;
|
m_graphicContext = NULL ;
|
||||||
CGContextRelease( bmCtx ) ;
|
CGContextRelease( bmCtx ) ;
|
||||||
@@ -68,7 +68,7 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
|
|||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
m_selected.EndRawAccess() ;
|
m_selected.EndRawAccess() ;
|
||||||
CGContextRef bmCtx = dynamic_cast<wxMacCGContext*>(m_graphicContext)->GetNativeContext() ;
|
CGContextRef bmCtx = (wxMacCGContext*)(m_graphicContext)->GetNativeContext() ;
|
||||||
delete m_graphicContext ;
|
delete m_graphicContext ;
|
||||||
m_graphicContext = NULL ;
|
m_graphicContext = NULL ;
|
||||||
CGContextRelease( bmCtx ) ;
|
CGContextRelease( bmCtx ) ;
|
||||||
|
@@ -361,7 +361,7 @@ wxPrinterDC::~wxPrinterDC(void)
|
|||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
void wxPrinterDC::MacSetCGContext( void * cg )
|
void wxPrinterDC::MacSetCGContext( void * cg )
|
||||||
{
|
{
|
||||||
dynamic_cast<wxMacCGContext*>(m_graphicContext)->SetNativeContext( (CGContextRef) cg ) ;
|
(wxMacCGContext*)(m_graphicContext)->SetNativeContext( (CGContextRef) cg ) ;
|
||||||
m_graphicContext->SetPen( m_pen ) ;
|
m_graphicContext->SetPen( m_pen ) ;
|
||||||
m_graphicContext->SetBrush( m_brush ) ;
|
m_graphicContext->SetBrush( m_brush ) ;
|
||||||
}
|
}
|
||||||
|
@@ -168,7 +168,7 @@ bool wxMetaFile::Play(wxDC *dc)
|
|||||||
{
|
{
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
|
QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef ;
|
||||||
CGContextRef cg = dynamic_cast<wxMacCGContext*>(dc->GetGraphicContext())->GetNativeContext() ;
|
CGContextRef cg = (wxMacCGContext*)(dc->GetGraphicContext())->GetNativeContext() ;
|
||||||
CGRect bounds = QDPictGetBounds( cgPictRef ) ;
|
CGRect bounds = QDPictGetBounds( cgPictRef ) ;
|
||||||
|
|
||||||
CGContextSaveGState(cg);
|
CGContextSaveGState(cg);
|
||||||
|
@@ -162,7 +162,7 @@ wxRendererMac::DrawHeaderButton(wxWindow *win,
|
|||||||
{
|
{
|
||||||
CGContextRef cgContext ;
|
CGContextRef cgContext ;
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
cgContext = dynamic_cast<wxMacCGContext*>(dc.GetGraphicContext())->GetNativeContext() ;
|
cgContext = (wxMacCGContext*)(dc.GetGraphicContext())->GetNativeContext() ;
|
||||||
#else
|
#else
|
||||||
Rect bounds ;
|
Rect bounds ;
|
||||||
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
||||||
@@ -286,7 +286,7 @@ wxRendererMac::DrawSplitterSash(wxWindow *win,
|
|||||||
{
|
{
|
||||||
CGContextRef cgContext ;
|
CGContextRef cgContext ;
|
||||||
#if wxMAC_USE_CORE_GRAPHICS
|
#if wxMAC_USE_CORE_GRAPHICS
|
||||||
cgContext = dynamic_cast<wxMacCGContext*>(dc.GetGraphicContext())->GetNativeContext() ;
|
cgContext = (wxMacCGContext*)(dc.GetGraphicContext())->GetNativeContext() ;
|
||||||
#else
|
#else
|
||||||
Rect bounds ;
|
Rect bounds ;
|
||||||
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
GetPortBounds( (CGrafPtr) dc.m_macPort , &bounds ) ;
|
||||||
|
@@ -2420,7 +2420,7 @@ ControlUserPaneFocusUPP gTPFocusProc = NULL;
|
|||||||
static pascal void wxMacControlUserPaneDrawProc(ControlRef control, SInt16 part)
|
static pascal void wxMacControlUserPaneDrawProc(ControlRef control, SInt16 part)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacControlUserPaneDrawProc(part) ;
|
win->MacControlUserPaneDrawProc(part) ;
|
||||||
}
|
}
|
||||||
@@ -2428,7 +2428,7 @@ static pascal void wxMacControlUserPaneDrawProc(ControlRef control, SInt16 part)
|
|||||||
static pascal ControlPartCode wxMacControlUserPaneHitTestProc(ControlRef control, Point where)
|
static pascal ControlPartCode wxMacControlUserPaneHitTestProc(ControlRef control, Point where)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
return win->MacControlUserPaneHitTestProc(where.h , where.v) ;
|
return win->MacControlUserPaneHitTestProc(where.h , where.v) ;
|
||||||
else
|
else
|
||||||
@@ -2438,7 +2438,7 @@ static pascal ControlPartCode wxMacControlUserPaneHitTestProc(ControlRef control
|
|||||||
static pascal ControlPartCode wxMacControlUserPaneTrackingProc(ControlRef control, Point startPt, ControlActionUPP actionProc)
|
static pascal ControlPartCode wxMacControlUserPaneTrackingProc(ControlRef control, Point startPt, ControlActionUPP actionProc)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
return win->MacControlUserPaneTrackingProc( startPt.h , startPt.v , (void*) actionProc) ;
|
return win->MacControlUserPaneTrackingProc( startPt.h , startPt.v , (void*) actionProc) ;
|
||||||
else
|
else
|
||||||
@@ -2448,7 +2448,7 @@ static pascal ControlPartCode wxMacControlUserPaneTrackingProc(ControlRef contro
|
|||||||
static pascal void wxMacControlUserPaneIdleProc(ControlRef control)
|
static pascal void wxMacControlUserPaneIdleProc(ControlRef control)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacControlUserPaneIdleProc() ;
|
win->MacControlUserPaneIdleProc() ;
|
||||||
}
|
}
|
||||||
@@ -2456,7 +2456,7 @@ static pascal void wxMacControlUserPaneIdleProc(ControlRef control)
|
|||||||
static pascal ControlPartCode wxMacControlUserPaneKeyDownProc(ControlRef control, SInt16 keyCode, SInt16 charCode, SInt16 modifiers)
|
static pascal ControlPartCode wxMacControlUserPaneKeyDownProc(ControlRef control, SInt16 keyCode, SInt16 charCode, SInt16 modifiers)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
return win->MacControlUserPaneKeyDownProc(keyCode,charCode,modifiers) ;
|
return win->MacControlUserPaneKeyDownProc(keyCode,charCode,modifiers) ;
|
||||||
else
|
else
|
||||||
@@ -2466,7 +2466,7 @@ static pascal ControlPartCode wxMacControlUserPaneKeyDownProc(ControlRef control
|
|||||||
static pascal void wxMacControlUserPaneActivateProc(ControlRef control, Boolean activating)
|
static pascal void wxMacControlUserPaneActivateProc(ControlRef control, Boolean activating)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacControlUserPaneActivateProc(activating) ;
|
win->MacControlUserPaneActivateProc(activating) ;
|
||||||
}
|
}
|
||||||
@@ -2474,7 +2474,7 @@ static pascal void wxMacControlUserPaneActivateProc(ControlRef control, Boolean
|
|||||||
static pascal ControlPartCode wxMacControlUserPaneFocusProc(ControlRef control, ControlFocusPart action)
|
static pascal ControlPartCode wxMacControlUserPaneFocusProc(ControlRef control, ControlFocusPart action)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
return win->MacControlUserPaneFocusProc(action) ;
|
return win->MacControlUserPaneFocusProc(action) ;
|
||||||
else
|
else
|
||||||
@@ -2485,7 +2485,7 @@ static pascal ControlPartCode wxMacControlUserPaneFocusProc(ControlRef control,
|
|||||||
static pascal void wxMacControlUserPaneBackgroundProc(ControlRef control, ControlBackgroundPtr info)
|
static pascal void wxMacControlUserPaneBackgroundProc(ControlRef control, ControlBackgroundPtr info)
|
||||||
{
|
{
|
||||||
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
wxTextCtrl *textCtrl = wxDynamicCast( wxFindControlFromMacControl(control) , wxTextCtrl ) ;
|
||||||
wxMacMLTEClassicControl * win = textCtrl ? dynamic_cast<wxMacMLTEClassicControl*>(textCtrl->GetPeer()) : NULL ;
|
wxMacMLTEClassicControl * win = textCtrl ? (wxMacMLTEClassicControl*)(textCtrl->GetPeer()) : NULL ;
|
||||||
if ( win )
|
if ( win )
|
||||||
win->MacControlUserPaneBackgroundProc(info) ;
|
win->MacControlUserPaneBackgroundProc(info) ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user