I am trying to simply draw a bitmap on a form.  I want the bitmap to be
displayed in high res for double density screens, and not displayed at all
for others.  The screen I am drawing to does have some text labels that I am
hoping will be covered up by the bitmap in high-res, but visible when not.

I have tried to get this to work by trying things I've seen in posts in this
group, but I never get anything.  I'm not sure if I am missing a basic
assumption not being mentioned.

I am using Palms latest Dev Studio.

I have a bitmap resource defined with resource id 1000.

I have a resource.h that has a #define imgBitmap 1000

I have an about screen where in the frmAbout_HandleEvent I have added the
following code to the frmUpdateEvent case:
WinSetCoordinateSystem( kCoordinatesNative );

resH = DmGetResource (bitmapRsc, imgBitmap);

bmP = MemHandleLock (resH);

bmP3 = BmpCreateBitmapV3( bmP, kDensityDouble, BmpGetBits( bmP ), NULL );

WinDrawBitmap( (BitmapPtr) bmP3, 0, 0 );

WinSetCoordinateSystem( kCoordinatesStandard );

When the About screen displays in the Cobalt simulator I never see the
bitmap.

Any ideas?

Thanks in advance!

Mike



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to