correct access for virtuals, other minor corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2006-05-24 05:03:00 +00:00
parent 0fe9c32957
commit 13199c3dcb
2 changed files with 8 additions and 7 deletions

View File

@@ -12,10 +12,9 @@
#ifndef _WX_UNIV_TGLBTN_H_ #ifndef _WX_UNIV_TGLBTN_H_
#define _WX_UNIV_TGLBTN_H_ #define _WX_UNIV_TGLBTN_H_
class WXDLLEXPORT wxInputHandler;
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/checkbox.h"
extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[];
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// the actions supported by this control // the actions supported by this control
@@ -106,17 +105,18 @@ public:
// returns the default button size for this platform // returns the default button size for this platform
static wxSize GetDefaultSize(); static wxSize GetDefaultSize();
protected:
virtual bool PerformAction(const wxControlAction& action, virtual bool PerformAction(const wxControlAction& action,
long numArg = -1, long numArg = -1,
const wxString& strArg = wxEmptyString); const wxString& strArg = wxEmptyString);
virtual bool CanBeHighlighted() const { return true; }
protected:
virtual wxSize DoGetBestClientSize() const; virtual wxSize DoGetBestClientSize() const;
virtual bool DoDrawBackground(wxDC& dc); virtual bool DoDrawBackground(wxDC& dc);
virtual void DoDraw(wxControlRenderer *renderer); virtual void DoDraw(wxControlRenderer *renderer);
virtual bool CanBeHighlighted() const { return true; }
// common part of all ctors // common part of all ctors
void Init(); void Init();

View File

@@ -25,6 +25,8 @@
#if wxUSE_TOGGLEBTN #if wxUSE_TOGGLEBTN
#include "wx/tglbtn.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/dcscreen.h" #include "wx/dcscreen.h"
@@ -38,7 +40,6 @@
#include "wx/univ/theme.h" #include "wx/univ/theme.h"
#include "wx/univ/colschem.h" #include "wx/univ/colschem.h"
#include "wx/stockitem.h" #include "wx/stockitem.h"
#include "wx/tglbtn.h"
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// constants // constants