Only a few small modifications: MemHandle hBitmap; BitmapType* pBitmap;
hBitmap = DmGetResource(bitmapRsc, 1010); pBitmap = MemHandleLock(hBitmap); WinSetDrawWindow(yourWindow); WinDrawBitmap(hBitmap, 20, 20); MemHandleUnlock(pBitmap); DmReleaseResource(hBitmap); ----- Original Message ---- From: V. Sriram <[EMAIL PROTECTED]> To: Palm Developer Forum <[email protected]> Sent: Saturday, July 7, 2007 2:16:47 AM Subject: WinDrawBitmap not working Hi all, I want to display bitmap on the form programatically. This is the code snippet: MemHandle bitmapH; bitmapH = DmGet1Resource('Tbmp', 1010);//I have 1010 in resources if (bitmapH) { BitmapType *bitmap; bitmap = (BitmapPtr)MemHandleLock(bitmapH); WinDrawBitmap(bitmap, 20, 20); MemHandleUnlock(bitmapH); DmReleaseResource(bitmapH); FrmDrawForm(pForm); } The code gets the image(it enters the if condition, I checked) but image is not getting displayed. Please help me out on this. Awaiting response Thanks and regards, Sriram -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
