combobox and textctrl fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2004-07-11 17:03:30 +00:00
parent 5ca0d8122a
commit 788e118f21
3 changed files with 38 additions and 59 deletions

View File

@@ -2387,12 +2387,16 @@ void wxWindowMac::OnSetFocus(wxFocusEvent& event)
if ( MacGetTopLevelWindow() && m_peer->NeedsFocusRect() )
{
wxWindowDC dc(this) ;
wxMacPortSetter helper(&dc) ;
wxMacWindowStateSaver sv( this ) ;
// wxWindowDC dc(this) ;
// wxMacPortSetter helper(&dc) ;
int w , h ;
int x , y ;
x = y = 0 ;
MacWindowToRootWindow( &x , &y ) ;
GetSize( &w , &h ) ;
Rect rect = { dc.m_macLocalOrigin.y , dc.m_macLocalOrigin.x , h + dc.m_macLocalOrigin.y , w + dc.m_macLocalOrigin.x } ;
Rect rect = {y , x , h + y , w + x } ;
if ( event.GetEventType() == wxEVT_SET_FOCUS )
DrawThemeFocusRect( &rect , true ) ;