News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

adding text to a listbox

Started by loser1, March 23, 2006, 03:20:03 PM

Previous topic - Next topic

loser1

nvm can a admin please delete this post thanks

diablo2oo2

Quoteok i found this example in the masm directory how can i change the text and backgroud color?

try something like this:
[...]
.if msg==WM_CTLCOLORLISTBOX
invoke SetTextColor,wparam,text_color ;TextColor
invoke SetBkMode,wparam,TRANSPARENT ;Background of Text or SetBkColor
invoke CreateSolidBrush,background_color ;BackgroundColor of Listbox
ret
[...]