]> git.saurik.com Git - wxWidgets.git/commitdiff
Derive wxStatusBar from wxControl and not wxWindow.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:36 +0000 (01:22 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Nov 2010 01:22:36 +0000 (01:22 +0000)
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

include/wx/statusbr.h
interface/wx/statusbr.h

index aaaba6607c1cde3ad72eca7ea85a337c83bc8467..a6ca7e6dd5d384f39ee62843d9a10fb3994f70d9 100644 (file)
@@ -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();
index 3a2c7140a2ffb36f75fe04259b3dbd1d110bd773..ab152a5bdc918189fba7cac98d5a89a59959fa12 100644 (file)
@@ -83,7 +83,7 @@ public:
 
     @see wxStatusBarPane, wxFrame, @ref page_samples_statbar
 */
-class wxStatusBar : public wxWindow
+class wxStatusBar : public wxControl
 {
 public:
     /**