nanogui: Workaround for CreateBitmap() in uWin?


Previous by date: 11 Jan 2002 20:36:43 -0000 Re: Keypad implementation, Jordan Crouse
Next by date: 11 Jan 2002 20:36:43 -0000 Re: null keyboard prototype error, Greg Haerr
Previous in thread:
Next in thread: 11 Jan 2002 20:36:43 -0000 Re: Workaround for CreateBitmap() in uWin?, Greg Haerr

Subject: Workaround for CreateBitmap() in uWin?
From: Hihn Jason ####@####.####
Date: 11 Jan 2002 20:36:43 -0000
Message-Id: <E1836A7F3557D311A14000805F9F36FC0141C471@usdfo011.usac.danfoss.net>

Hello all,

I'm attempting to port code that uses CreateBitmap and LoadBitmap. I notice
that there is no such function in uWin, but I can come close:
<code>
hdcMem=CreateCompatibleDC(...);
hBitmap=CreateCompatibleBitmap(...);
 
/* How do I get image data into the bitmap? */

DrawDIB(hdcMem, 0, 0, hBitmap);
BitBlit(hdc, ... hdcMem,...);
</code>

Part of the problem is our current code is:

hBitmap = CreateBitmap( ..., bmComputedAtRunTime);

How can I take the bitmap image data and link it to a
CreateCompatibleBitmapped () hBitmap return value?

Also, how can I get LoadBMP data into a hBitmap as well?

I'm trying to keep as much of the code the same so it will still compile
under real Windows as well.

I'll keep digging, but thanks in advance. 

-J

Previous by date: 11 Jan 2002 20:36:43 -0000 Re: Keypad implementation, Jordan Crouse
Next by date: 11 Jan 2002 20:36:43 -0000 Re: null keyboard prototype error, Greg Haerr
Previous in thread:
Next in thread: 11 Jan 2002 20:36:43 -0000 Re: Workaround for CreateBitmap() in uWin?, Greg Haerr


Powered by ezmlm-browse 0.20.