VC6 compilation fix: using access declaration can only be used with immediate base class members with this compiler

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-06-30 13:40:08 +00:00
parent 29886d1bf8
commit a2fd8a45ec
2 changed files with 8 additions and 2 deletions

View File

@@ -3772,7 +3772,10 @@ public:
virtual void ShowPosition(long pos) { GotoPos(pos); }
using wxWindow::HitTest;
// FIXME-VC6: can't use wxWindow here because of "error C2603: illegal
// access declaration: 'wxWindow' is not a direct base of
// 'wxStyledTextCtrl'" with VC6
using wxControl::HitTest;
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const
{

View File

@@ -405,7 +405,10 @@ public:
virtual void ShowPosition(long pos) { GotoPos(pos); }
using wxWindow::HitTest;
// FIXME-VC6: can't use wxWindow here because of "error C2603: illegal
// access declaration: 'wxWindow' is not a direct base of
// 'wxStyledTextCtrl'" with VC6
using wxControl::HitTest;
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const
{