0
4

1 回答 1

0
    CFont       *pCurFont = NULL;
    CFont       *pNewFont = NULL;
    CFont       *pOldFont = NULL;
    LOGFONT     logfont;
    CFont       newfont ;

    /* Draw Hot State */
    if (itemState & CDIS_HOT) {
        pCurFont = dc.GetCurrentFont ();
        if (pCurFont)  {
            memset ((void *) &logfont,0,sizeof (logfont));
            if (pCurFont->GetLogFont (&logfont)) {
                logfont.lfUnderline = 0;
                logfont.lfHeight = pRect->bottom - pRect->top - 3;
                logfont.lfWeight = FW_BOLD;
                newfont.CreateFontIndirect (&logfont);
                pOldFont = dc.SelectObject (&newfont);
            }
        }
    } else {
        ;
    }

好了,现在好了……

于 2015-05-17T14:58:46.523 回答