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

  • 作者:aspxer  来源:internet  日期:2007-5-21 23:49:15  关键字:
  • // otherwise parent will never receive CDDS_ITEMPREPAINT notification. (GGH)

    *pResult = CDRF_NOTIFYITEMDRAW; // reposuition the viewport so the TreeCtrl DefWindowProc doesn´t draw to viewport 0/0

    //(pCustomDraw->nmcd.hdc, /*m_nOffset*/0, 0, NULL);

    break; case CDDS_ITEMPREPAINT:

    // set the background and foregroundcolor of the item to the background, so you don´t see the default drawing of the text

    item state(focus,selected..), because it will be drawn of us

    nItemState = pCustomDraw->nmcd.uItemState; pCustomDraw->nmcd.uItemState &= ~CDIS_FOCUS;

    pCustomDraw->clrText = m_colHilightText;

    // remember the drawing rectangle of the item so we can draw it ourselves

    m_pTree->GetItemRect((HTREEITEM) pCustomDraw->nmcd.dwItemSpec, &rcItem, TRUE);

    *pResult = CDRF_NOTIFYPOSTPAINT;

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