02-15-2007, 01:40 PM
Yes...its working...i have a custom dialog
Since, data is loaded dynamically, how do i force a refresh on the tree to reflect the colors... I modified DEX_TvCustomDraw as follows :
Since, data is loaded dynamically, how do i force a refresh on the tree to reflect the colors... I modified DEX_TvCustomDraw as follows :
/DEX_Main
function# NMTVCUSTOMDRAW*cd
out cd.nmcd.dwDrawStage
sel cd.nmcd.dwDrawStage
case CDDS_PREPAINT ret CDRF_NOTIFYITEMDRAW ;;yes, notify me to draw items
case CDDS_ITEMPREPAINT
if cd.nmcd.lItemlParam > 0 and Mail_Data_Loaded = 1
if Mail_Data_Folders_Unread[cd.nmcd.lItemlParam-1] != "0"
cd.clrText = 0xFF0000
else
cd.clrText = 0x000000
else
cd.clrText = 0x000000
case else ret