git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10798
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// if ( !IsShown() )
// return ;
- wxMacDrawingHelper focus( this ) ;
+ wxMacDrawingClientHelper focus( this ) ;
if ( focus.Ok() )
{
- Rect clientrect = { 0 , 0 , m_height , m_width } ;
+ wxPoint client ;
+ client = GetClientAreaOrigin( ) ;
+ Rect clientrect = { -client.y , -client.x , m_height - client.y , m_width - client.x} ;
// ClipRect( &clientrect ) ;
if ( rect )
// if ( !IsShown() )
// return ;
- wxMacDrawingHelper focus( this ) ;
+ wxMacDrawingClientHelper focus( this ) ;
if ( focus.Ok() )
{
- Rect clientrect = { 0 , 0 , m_height , m_width } ;
+ wxPoint client ;
+ client = GetClientAreaOrigin( ) ;
+ Rect clientrect = { -client.y , -client.x , m_height - client.y , m_width - client.x} ;
// ClipRect( &clientrect ) ;
if ( rect )