diff --git a/include/wx/generic/progdlgg.h b/include/wx/generic/progdlgg.h index 310481f397..ba8fb0bcc5 100644 --- a/include/wx/generic/progdlgg.h +++ b/include/wx/generic/progdlgg.h @@ -46,16 +46,16 @@ public: virtual void Resume(); - int GetValue() const; - int GetRange() const; - wxString GetMessage() const; + virtual int GetValue() const; + virtual int GetRange() const; + virtual wxString GetMessage() const; - void SetRange(int maximum); + virtual void SetRange(int maximum); // Return whether "Cancel" or "Skip" button was pressed, always return // false if the corresponding button is not shown. - bool WasCancelled() const; - bool WasSkipped() const; + virtual bool WasCancelled() const; + virtual bool WasSkipped() const; // Must provide overload to avoid hiding it (and warnings about it) virtual void Update() wxOVERRIDE { wxDialog::Update(); } diff --git a/include/wx/msw/progdlg.h b/include/wx/msw/progdlg.h index 6db08be01d..c22a79db91 100644 --- a/include/wx/msw/progdlg.h +++ b/include/wx/msw/progdlg.h @@ -28,15 +28,15 @@ public: virtual void Resume() wxOVERRIDE; - int GetValue() const; - wxString GetMessage() const; + virtual int GetValue() const wxOVERRIDE; + virtual wxString GetMessage() const wxOVERRIDE; - void SetRange(int maximum); + virtual void SetRange(int maximum) wxOVERRIDE; // Return whether "Cancel" or "Skip" button was pressed, always return // false if the corresponding button is not shown. - bool WasSkipped() const; - bool WasCancelled() const; + virtual bool WasSkipped() const wxOVERRIDE; + virtual bool WasCancelled() const wxOVERRIDE; virtual void SetTitle(const wxString& title) wxOVERRIDE; virtual wxString GetTitle() const wxOVERRIDE;