m_iFlags |= wxCC_IFLAG_CREATED;
// If x and y indicate valid size, wxSizeEvent won't be
- // emitted automatically, so we need to add artifical one.
+ // emitted automatically, so we need to add artificial one.
if ( size.x > 0 && size.y > 0 )
{
wxSizeEvent evt(size,GetId());
+ event.SetEventObject(this);
GetEventHandler()->AddPendingEvent(evt);
}
if ( IsCreated() )
{
wxSizeEvent evt(GetSize(),GetId());
+ event.SetEventObject(this);
GetEventHandler()->ProcessEvent(evt);
Refresh();
}
// finally send an event allowing the window to relayout itself &c
wxSizeEvent event(rect.GetSize(), GetId());
+ event.SetEventObject(this);
HandleWindowEvent(event);
}
else // stop showing full screen