I'm trying to draw a bitmap using the following bit of code:

                        // figure out which bitmap to draw
                        if (theSumm.read_status == 'U')
                        {
                                status = (BitmapPtr)DmGetResource(bitmapRsc, 
UnreadIconBitmap);
                        }
                        else if (theSumm.read_status == 'C')
                        {
                                status = (BitmapPtr)DmGetResource(bitmapRsc, 
ReturnRecpIconBitmap);
                        }
                        if (status)
                        {
                                WinDrawBitmap(status, 0, bounds->topLeft.y);
                        }

When I break at the WinDrawBitmap line and look at the status variable, things
arn't looking very good. The bitmap should be 10x10, but the width is 5 and the
height is -29128, so it's fair to assume I'm not getting a pointer to a valid
bitmap. 

I haven't been able to find any examples of what I'm trying to do, anyone see my
mistake?

Steve Cochran

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to