From: "HowY" <[EMAIL PROTECTED]>
Subject: Simple Bitmap Question...
> How do I change the bitmap? I place a "default"
> form bitmap on a form in constructor. What do I need
> to do in source code to replace that bitmap with another
> (different resource id's) bitmap.
HowY,
When changing bitmaps, I find it easier to just draw a bitmap directly with
WinDrawBitmap() and not use a FormBitmap. Given the bitmapID and an x and y
position, I use this code to draw it:
MemHandle theResourceHandle;
BitmapPtr theBitmapPtr;
theResourceHandle = DmGetResource( bitmapRsc, bitmapID );
theBitmapPtr = MemHandleLock( theResourceHandle );
WinDrawBitmap( theBitmapPtr, x, y );
MemHandleUnlock( theResourceHandle );
DmReleaseResource( theResourceHandle );
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/