MCPcopy Create free account
hub / github.com/cinience/RedisStudio / GetFontIndex

Method GetFontIndex

DuiLib/Core/UIManager.cpp:1788–1796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1786}
1787
1788int CPaintManagerUI::GetFontIndex(HFONT hFont)
1789{
1790 TFontInfo* pFontInfo = NULL;
1791 for( int it = 0; it < m_aCustomFonts.GetSize(); it++ ) {
1792 pFontInfo = static_cast<TFontInfo*>(m_aCustomFonts[it]);
1793 if( pFontInfo->hFont == hFont ) return it;
1794 }
1795 return -1;
1796}
1797
1798int CPaintManagerUI::GetFontIndex(LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic)
1799{

Callers

nothing calls this directly

Calls 1

GetSizeMethod · 0.45

Tested by

no test coverage detected