Thanks to all of you who responded to my query

I ended up with a wrapper from one of the examples
that came with CW and worked the bitmaps onto
a structure with resourceID and x y coords
so calls to DrawBitmap can be indexed
thru a struct...

Appriciate all the help! could'nt have done it
without 'ya!


Heres the wrapper...
static void DrawBitmap(int resID, Short x, Short y)
{
 Handle  resH;
 BitmapPtr resP;
 resH = DmGetResource( bitmapRsc, resID );
 ErrFatalDisplayIf( !resH, "Missing bitmap" );

 resP = MemHandleLock(resH);
 WinDrawBitmap (resP, x, y);
 MemPtrUnlock(resP);
 DmReleaseResource( resH );
}

and an example struct.....

typedef struct  // resource ID & LOCATION OF X,Y COORDINATES
{
 Word ResID;
 Short X;
 Short Y;
 } BitmapLocInfo;

static BitmapLocInfo BitMaps[3] =
 {  {1100, 7, 34},  {1101, 18, 34},  {1102, 50, 34},  };







-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to