| 1786 | } |
| 1787 | |
| 1788 | int 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 | |
| 1798 | int CPaintManagerUI::GetFontIndex(LPCTSTR pStrFontName, int nSize, bool bBold, bool bUnderline, bool bItalic) |
| 1799 | { |