The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: ragdog on January 21, 2007, 02:28:41 PM

Title: color button with icon and text
Post by: ragdog on January 21, 2007, 02:28:41 PM
hi guys :bg

I have a problem also color button!
I would like to show up an icon and text in a color button with the drawlten function
could you help me?

my source is included

thanks
ragdog

[attachment deleted by admin]
Title: Re: color button with icon and text
Post by: ragdog on February 04, 2007, 04:36:31 PM
hello people“s

can help me no further with this problem  :'(
Title: Re: color button with icon and text
Post by: dsouza123 on February 04, 2007, 06:40:11 PM
There is a good example, though it doesn't use WM_DrawItem,
that comes with MASM32
in examples\exampl02\bmbutton
bmbutton.asm, button.inc, file0003.ico, rsrc.rc
It does buttons with icons (.ico) or bitmaps (.bmp) .
It would work if the bitmap had the text as part of the image.

Or google drawitem eax
the first page of results has code that seems to cover what you want,
one link is even from this forum !