add virtual DoGetTextExtent() to allow calling the overloaded wxWindowBase::GetTextExtent() on wxWindow objects without any ugly casts/scope resolution operators
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,19 +98,6 @@ public:
|
||||
virtual bool SetFont(const wxFont& rFont);
|
||||
virtual int GetCharHeight(void) const;
|
||||
virtual int GetCharWidth(void) const;
|
||||
virtual void GetTextExtent( const wxString& rString
|
||||
,int* pX
|
||||
,int* pY
|
||||
,int* pDescent = NULL
|
||||
,int* pExternalLeading = NULL
|
||||
,const wxFont* pTheFont = (const wxFont *)NULL
|
||||
) const;
|
||||
#if wxUSE_MENUS_NATIVE
|
||||
virtual bool DoPopupMenu( wxMenu* pMenu
|
||||
,int nX
|
||||
,int nY
|
||||
);
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
|
||||
virtual void SetScrollbar( int nOrient
|
||||
,int nPos
|
||||
@@ -460,6 +447,19 @@ protected:
|
||||
long m_lDlgCode;
|
||||
|
||||
// implement the base class pure virtuals
|
||||
virtual void GetTextExtent( const wxString& rString
|
||||
,int* pX
|
||||
,int* pY
|
||||
,int* pDescent = NULL
|
||||
,int* pExternalLeading = NULL
|
||||
,const wxFont* pTheFont = NULL
|
||||
) const;
|
||||
#if wxUSE_MENUS_NATIVE
|
||||
virtual bool DoPopupMenu( wxMenu* pMenu
|
||||
,int nX
|
||||
,int nY
|
||||
);
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
virtual void DoClientToScreen( int* pX
|
||||
,int* pY
|
||||
) const;
|
||||
|
Reference in New Issue
Block a user