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:
@@ -557,10 +557,11 @@ int wxWindowDFB::GetCharWidth() const
|
||||
return dc.GetCharWidth();
|
||||
}
|
||||
|
||||
void wxWindowDFB::GetTextExtent(const wxString& string,
|
||||
int *x, int *y,
|
||||
int *descent, int *externalLeading,
|
||||
const wxFont *theFont) const
|
||||
void wxWindowDFB::DoGetTextExtent(const wxString& string,
|
||||
int *x, int *y,
|
||||
int *descent,
|
||||
int *externalLeading,
|
||||
const wxFont *theFont) const
|
||||
{
|
||||
wxWindowDC dc((wxWindow*)this);
|
||||
dc.GetTextExtent(string, x, y, descent, externalLeading, (wxFont*)theFont);
|
||||
|
Reference in New Issue
Block a user