formatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -609,6 +609,7 @@ void wxControl::DoSetSize(int x, int y,
|
|||||||
m_width - 2 * m_macHorizontalBorder,
|
m_width - 2 * m_macHorizontalBorder,
|
||||||
m_height - 2 * m_macVerticalBorder ) ;
|
m_height - 2 * m_macVerticalBorder ) ;
|
||||||
|
|
||||||
|
|
||||||
wxSizeEvent event(wxSize(m_width, m_height), m_windowId);
|
wxSizeEvent event(wxSize(m_width, m_height), m_windowId);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(event);
|
GetEventHandler()->ProcessEvent(event);
|
||||||
@@ -854,7 +855,7 @@ void wxControl::OnMouseEvent( wxMouseEvent &event )
|
|||||||
{
|
{
|
||||||
controlpart = ::HandleControlClick( control , localwhere , modifiers , (ControlActionUPP) -1 ) ;
|
controlpart = ::HandleControlClick( control , localwhere , modifiers , (ControlActionUPP) -1 ) ;
|
||||||
wxTheApp->s_lastMouseDown = 0 ;
|
wxTheApp->s_lastMouseDown = 0 ;
|
||||||
if ( control && controlpart != kControlNoPart &&
|
if ( control && controlpart != kControlNoPart &&
|
||||||
! IsKindOf( CLASSINFO( wxScrollBar ) )
|
! IsKindOf( CLASSINFO( wxScrollBar ) )
|
||||||
) // otherwise we will get the event twice for scrollbar
|
) // otherwise we will get the event twice for scrollbar
|
||||||
{
|
{
|
||||||
|
@@ -609,6 +609,7 @@ void wxControl::DoSetSize(int x, int y,
|
|||||||
m_width - 2 * m_macHorizontalBorder,
|
m_width - 2 * m_macHorizontalBorder,
|
||||||
m_height - 2 * m_macVerticalBorder ) ;
|
m_height - 2 * m_macVerticalBorder ) ;
|
||||||
|
|
||||||
|
|
||||||
wxSizeEvent event(wxSize(m_width, m_height), m_windowId);
|
wxSizeEvent event(wxSize(m_width, m_height), m_windowId);
|
||||||
event.SetEventObject(this);
|
event.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(event);
|
GetEventHandler()->ProcessEvent(event);
|
||||||
@@ -854,7 +855,7 @@ void wxControl::OnMouseEvent( wxMouseEvent &event )
|
|||||||
{
|
{
|
||||||
controlpart = ::HandleControlClick( control , localwhere , modifiers , (ControlActionUPP) -1 ) ;
|
controlpart = ::HandleControlClick( control , localwhere , modifiers , (ControlActionUPP) -1 ) ;
|
||||||
wxTheApp->s_lastMouseDown = 0 ;
|
wxTheApp->s_lastMouseDown = 0 ;
|
||||||
if ( control && controlpart != kControlNoPart &&
|
if ( control && controlpart != kControlNoPart &&
|
||||||
! IsKindOf( CLASSINFO( wxScrollBar ) )
|
! IsKindOf( CLASSINFO( wxScrollBar ) )
|
||||||
) // otherwise we will get the event twice for scrollbar
|
) // otherwise we will get the event twice for scrollbar
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user