我爱Aspx >> VC.Net >> Outlook风格的使用不同的颜色单列显示新邮件数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
【我对这篇文章有话说?】
MMX开发文档[05-21]
使用C#制作的更换桌面背景程序[05-21]
基于MFC的编写线程快速入门[05-21]
Serialization入门读物---PART1[05-21]
Serialization入门读物---PART1[05-21]
vc++中使用xml[05-21]
vc++中使用xml[05-21]
异步调用win32 internet functio..[05-21]
异步调用win32 internet functio..[05-21]
MSDN笔记---TN001:Window Class ..[05-21]