diff --git a/include/wx/stc/stc.h b/include/wx/stc/stc.h index abc9f6ac39..5ab192da78 100644 --- a/include/wx/stc/stc.h +++ b/include/wx/stc/stc.h @@ -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 { diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in index 4f313a11e3..2cdc27b3d9 100644 --- a/src/stc/stc.h.in +++ b/src/stc/stc.h.in @@ -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 {