• 您的位置我爱Aspx >> VC.Net >> Outlook风格的使用不同的颜色单列显示新邮件数
  • Outlook风格的使用不同的颜色单列显示新邮件数

  • 作者:aspxer  来源:internet  日期:2007-5-21 23:49:15  关键字:
  • else

    {

    TRACE("CLEAR HIGH\n");

    // add this to clear leftover highlight bar

    ::FillRect(hdc, &rcItem, (HBRUSH)m_BackBrushNormal.m_hObject);

    } // always write text without background

    ::SetBkMode(hdc, TRANSPARENT);

    ::SetTextColor(hdc,colText);

    CString str = m_pTree->GetItemText(hItem);

    ::DrawText(hdc, str, -1, &rcItem, DT_VCENTER | DT_SINGLELINE | DT_WORD_ELLIPSIS);

    // you may modify them according to your need

    int nNew = 20;

    CString strNew = _T("");

    strNew.Format(_T("(%d)"),nNew);

    ::SetTextColor(hdc,RGB(0,0,255));

    RECT rc = rcItem;

    rc.left = rcItem.right+2;

    rc.right = rc.left + 100;

    ::FillRect(hdc, &rc, (HBRUSH)m_BackBrushNormal.m_hObject);

    ::DrawText(hdc,strNew, -1, &rc, DT_VCENTER | DT_SINGLELINE | DT_WORD_ELLIPSIS);

    } 需要说明的是如果你支持拖放而且你需要做一些改变。 愿你快乐 Lazen() 2002.12.29

    我对这篇文章有话说?
  • 广告位招租,广告代号:content_468_15
  • 上一篇:巧用ASP生成PDF文件
    下一篇:MMX开发文档
  • 相关文章