我爱Aspx >> VC.Net >> Outlook风格的使用不同的颜色单列显示新邮件数// 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;
【我对这篇文章有话说?】
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]