--- Steve Strelzyk <[EMAIL PROTECTED]> wrote:
> ... I would like to know how to load a bitmap
> resource by ID and dynamically display it on a form. Can
> anyone tell me how to do this?
Use WinDrawBitmap(). For example:
static void DrawBitmap( UInt16 bitmapID, UInt16 x, UInt16 y )
{
MemHandle theResourceHandle;
BitmapPtr theBitmapPtr;
theResourceHandle = DmGetResource( bitmapRsc, bitmapID );
theBitmapPtr = MemHandleLock( theResourceHandle );
WinDrawBitmap( theBitmapPtr, x, y );
MemHandleUnlock( theResourceHandle );
DmReleaseResource( theResourceHandle );
}
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/