The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: loser1 on March 23, 2006, 03:20:03 PM

Title: adding text to a listbox
Post by: loser1 on March 23, 2006, 03:20:03 PM
nvm can a admin please delete this post thanks
Title: Re: adding text to a listbox
Post by: diablo2oo2 on March 23, 2006, 04:28:08 PM
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
[...]