[saco] Implement CDXUTDialog::GetFont(...)

This commit is contained in:
RD42 2024-05-24 22:55:03 +08:00
parent d2c7139b01
commit 87488b7d52
2 changed files with 10 additions and 0 deletions

View File

@ -278,6 +278,14 @@ HRESULT CDXUTDialog::SetFont( UINT index, LPCTSTR strFaceName, LONG height, LONG
}
//--------------------------------------------------------------------------------------
DXUTFontNode* CDXUTDialog::GetFont( UINT index )
{
if( NULL == m_pManager )
return NULL;
return m_pManager->GetFontNode( m_Fonts.GetAt( index ) );
}
//--------------------------------------------------------------------------------------
// CDXUTControl class
//--------------------------------------------------------------------------------------

View File

@ -106,6 +106,8 @@ public:
// Shared resource access. Indexed fonts and textures are shared among
// all the controls.
HRESULT SetFont( UINT index, LPCTSTR strFaceName, LONG height, LONG weight );
DXUTFontNode* GetFont( UINT index );
bool m_bNonUserEvents;