X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed1288eef07896f7dc5382e2658d720d5420a6d1..fa5f4858288ebd8e031b9d3e89d4ec89e8f212e7:/src/generic/progdlgg.cpp?ds=sidebyside diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 77af0c76aa..ef7b89b24e 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -99,7 +99,7 @@ wxProgressDialog::wxProgressDialog(const wxString& title, int maximum, wxWindow *parent, int style) - : wxDialog(GetParentForModalDialog(parent), wxID_ANY, title), + : wxDialog(GetParentForModalDialog(parent, style), wxID_ANY, title), m_skip(false), m_delay(3), m_hasAbortButton(false), @@ -538,6 +538,18 @@ void wxProgressDialog::SetRange(int maximum) #endif // __WXMSW__ } + +bool wxProgressDialog::WasCancelled() const +{ + return m_hasAbortButton && m_state == Canceled; +} + +bool wxProgressDialog::WasSkipped() const +{ + return m_hasSkipButton && m_skip; +} + + // ---------------------------------------------------------------------------- // event handlers // ----------------------------------------------------------------------------