thanks
Posted on 2005-01-24 12:09:38 by jndk
try this :
invoke SendMessage,hListbox,WM_SETFONT,hFont,0,TRUE

hfont = handle for the font ( use CreateFont to make one)
hListbox = target listbox

gr33d
Posted on 2005-01-24 12:29:36 by GR33d
typedef struct tagLOGFONT {
LONG lfHeight;
LONG lfWidth;
LONG lfEscapement;
LONG lfOrientation;
LONG lfWeight;
BYTE lfItalic;
BYTE lfUnderline;
BYTE lfStrikeOut;
BYTE lfCharSet;
BYTE lfOutPrecision;
BYTE lfClipPrecision;
BYTE lfQuality;
BYTE lfPitchAndFamily;
TCHAR lfFaceName;
} LOGFONT, *PLOGFONT;


sorry, i mean change the color , there no color infomation in hfont
Posted on 2005-01-24 23:00:06 by jndk
yeah, ure right, i forgot dat :P
maybe you could try the Owner Draw stuff, but i still dont know how to handle this :(

sorry
Posted on 2005-01-25 09:12:30 by GR33d
WM_CTLCOLORLISTBOX:

.if hBrush != 0
invoke CreateSolidBrush, #RGB_COLOR#
mov hBrush, eax
.else
mov eax, hBrush
.endif
ret

hBrush must be a global dword, and don't forget DeleteObject(hBrush) if you don't need them.
Posted on 2005-01-25 11:54:19 by Zord