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:
@@ -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;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user