]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
Override wxWindow::MSWGetCreateWindowCoords() in wxTopLevelWindow.
[wxWidgets.git] / src / generic / progdlgg.cpp
index 77af0c76aaae6a6a850b186d6b759646368e15ca..ef7b89b24e5638af8739386a79e096422fee417a 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------