From: Vadim Zeitlin Date: Mon, 22 Nov 2010 01:22:36 +0000 (+0000) Subject: Derive wxStatusBar from wxControl and not wxWindow. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f771bae35a55f0d229dad37b418cca8345af8fa8?ds=inline Derive wxStatusBar from wxControl and not wxWindow. wxStatusBar is no less a control than wxToolBar and deriving it from wxControl gives access to convenient native control creation functions under MSW (which will be used by the next commit). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/statusbr.h b/include/wx/statusbr.h index aaaba6607c..a6ca7e6dd5 100644 --- a/include/wx/statusbr.h +++ b/include/wx/statusbr.h @@ -16,7 +16,7 @@ #if wxUSE_STATUSBAR -#include "wx/window.h" +#include "wx/control.h" #include "wx/list.h" #include "wx/dynarray.h" @@ -106,7 +106,7 @@ WX_DECLARE_EXPORTED_OBJARRAY(wxStatusBarPane, wxStatusBarPaneArray); // wxStatusBar: a window near the bottom of the frame used for status info // ---------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxStatusBarBase : public wxWindow +class WXDLLIMPEXP_CORE wxStatusBarBase : public wxControl { public: wxStatusBarBase(); diff --git a/interface/wx/statusbr.h b/interface/wx/statusbr.h index 3a2c7140a2..ab152a5bdc 100644 --- a/interface/wx/statusbr.h +++ b/interface/wx/statusbr.h @@ -83,7 +83,7 @@ public: @see wxStatusBarPane, wxFrame, @ref page_samples_statbar */ -class wxStatusBar : public wxWindow +class wxStatusBar : public wxControl { public: /**