Reset progress state to no progress when destructing.
Author: Chaobin Zhang git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -422,7 +422,7 @@ void MyFrame::OnShowProgressDialog(wxCommandEvent& WXUNUSED(event))
|
||||
NULL,
|
||||
wxPD_AUTO_HIDE
|
||||
);
|
||||
wxAppProgressIndicator indicator(&dlg, PROGRESS_COUNT);
|
||||
wxAppProgressIndicator indicator(this, PROGRESS_COUNT);
|
||||
for ( int i = 0; i <= PROGRESS_COUNT; i++ )
|
||||
{
|
||||
if ( !dlg.Update(i) )
|
||||
@@ -442,7 +442,7 @@ void MyFrame::OnPulseProgressDialog(wxCommandEvent& WXUNUSED(event))
|
||||
NULL,
|
||||
wxPD_AUTO_HIDE
|
||||
);
|
||||
wxAppProgressIndicator indicator(&dlg, PROGRESS_COUNT);
|
||||
wxAppProgressIndicator indicator(this, PROGRESS_COUNT);
|
||||
for ( int i = 0; i <= PROGRESS_COUNT; i++ )
|
||||
{
|
||||
if ( !dlg.Pulse() )
|
||||
|
Reference in New Issue
Block a user