Use DmGetResources(bitmapRsc, id);

bitmapRsc is defined to be 'Tbmp' in UIResources.h.

Keith Wolcott

Guy Duplantier wrote:

> Palm Developers:
>
> I have a form that lists data. I want to precede each line of the list with
> one of two bitmaps to represent certain attributes of the list item.
> Essentially, I want to create a bitmap resource and draw it in a given
> rectangle on the screen. The Form Bitmap object is not what I need because I
> am drawing this image in multiple places on the screen, mulitple times. I
> found the WinDrawBitmap() function, but I cannot get the bitmap from the
> resource file.
>
> I have called DmGetResource() with the following:
> 'PICT', 'TCIP' (I am developing on a windows box)
> 'BMAP', 'ICON'
>
> I even took a wild shot at 'tPIC'.
> In all cases, DmGetResource() returns NULL. How can I get a bitmap created
> in Constructor and draw it?
>
> Thanks,
>
> _________________________________________________________
>
> Guy Duplantier                          Email: [EMAIL PROTECTED]
> Software Developer                      Phone: 703.450.1980
> AEC Software, Inc.                      Fax: 703.450.9786
> _________________________________________________________
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palm.com/devzone/mailinglists.html


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to