made wxFont::GetResourceHandle() const as well

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-09-22 20:58:43 +00:00
parent 44314d0d50
commit c1094350b3
2 changed files with 4 additions and 5 deletions

View File

@@ -90,11 +90,10 @@ public:
virtual bool IsFree() const; virtual bool IsFree() const;
virtual bool RealizeResource(); virtual bool RealizeResource();
virtual WXHANDLE GetResourceHandle(); virtual WXHANDLE GetResourceHandle() const;
virtual bool FreeResource(bool force = FALSE); virtual bool FreeResource(bool force = FALSE);
// for consistency with other wxMSW classes and to have a const // for consistency with other wxMSW classes
// GetResourceHandle()-like function we have a synonym for it
WXHFONT GetHFONT() const; WXHFONT GetHFONT() const;
/* /*

View File

@@ -742,9 +742,9 @@ bool wxFont::FreeResource(bool WXUNUSED(force))
return FALSE; return FALSE;
} }
WXHANDLE wxFont::GetResourceHandle() WXHANDLE wxFont::GetResourceHandle() const
{ {
return GetHFONT(); return (WXHANDLE)GetHFONT();
} }
WXHFONT wxFont::GetHFONT() const WXHFONT wxFont::GetHFONT() const