News:

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

color button with icon and text

Started by ragdog, January 21, 2007, 02:28:41 PM

Previous topic - Next topic

ragdog

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]

ragdog

hello peopleĀ“s

can help me no further with this problem  :'(

dsouza123

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 !