// 'Main program' equivalent: the program execution "starts" here
bool MyApp::OnInit()
{
+ if ( !wxApp::OnInit() )
+ return false;
+
// create the main application window
MyFrame *frame = new MyFrame(_T("wxComboCtrl and wxOwnerDrawnComboBox Sample"));
{
return wxTreeCtrl::Create(parent,1,
wxPoint(0,0),wxDefaultSize,
- wxTR_HIDE_ROOT|wxTR_HAS_BUTTONS|
- wxTR_SINGLE|wxTR_LINES_AT_ROOT|
- wxSIMPLE_BORDER);
+ wxTR_DEFAULT_STYLE | wxTR_HIDE_ROOT | wxSIMPLE_BORDER );
}
virtual void OnShow()
m_animTimer.SetOwner( this, wxID_ANY );
m_animTimer.Start( 10, wxTIMER_CONTINUOUS );
- OnTimerEvent(*((wxTimerEvent*)NULL)); // Event is never used, so we can give NULL
+ DoOnTimer();
return false;
}
+private:
void OnTimerEvent( wxTimerEvent& WXUNUSED(event) )
+ {
+ DoOnTimer();
+ }
+
+ void DoOnTimer()
{
bool stopTimer = false;
}
}
-protected:
-
// Popup animation related
wxLongLong m_animStart;
wxTimer m_animTimer;
wxBitmap m_animBackBitmap;
int m_animFlags;
-private:
DECLARE_EVENT_TABLE()
};
m_logWin->SetEditable(false);
wxLogTextCtrl* logger = new wxLogTextCtrl( m_logWin );
m_logOld = logger->SetActiveTarget( logger );
- logger->SetTimestamp( NULL );
+ logger->DisableTimestamp();
topSizer = new wxBoxSizer( wxVERTICAL );