01-05-2009, 07:11 AM
Function dialog_qmgrid2
To set different colors for cells, use custom draw. Look in explorer style dialog sample. It is somewhere in forum. DEX_Dialog etc. Look for NM_CUSTOMDRAW in code.
,case WM_INITDIALOG
,int hlv=id(3 hDlg)
,__Font- gfont.Create("" 20)
,SendMessage hlv WM_SETFONT gfont 0
,SendMessage hlv LVM_SETTEXTCOLOR 0 0xff0000
,SendMessage hlv LVM_SETTEXTBKCOLOR 0 0xe0ffff
,SendMessage hlv LVM_SETBKCOLOR 0 0xe0ffff
To set different colors for cells, use custom draw. Look in explorer style dialog sample. It is somewhere in forum. DEX_Dialog etc. Look for NM_CUSTOMDRAW in code.