"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On each form, you have FORMBITMAP resources, but those don't make a copy
of
> the bitmap, they just are a reference to the bitmap's resource ID. There
> is no limit on the number of different FORMBITMAP form objects that can
use
> the same BITMAP resource. The only limitation is that if you are using
> more than one FORMBITMAP on a form with the same ID, the OS may only let
> you show/hide the first one on the form.
The solution to that is manually draw the bitmaps at the appropriate time
like this:
MemHandle rh;
MemPtr rp;
if (rh = DmGetResource (bitmapRsc, resID)) {
if (rp = MemHandleLock (rh)) {
WinDrawBitmap((BitmapType*)rp, bounds->topLeft.x +
bounds->extent.x - 10, bounds->topLeft.y);
MemPtrUnlock(rp);
}
DmReleaseResource(rh);
}
Alan
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/