Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text Color - SysTreeView32
#8
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 :

Code:
Copy      Help
/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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)