Link to home
Start Free TrialLog in
Avatar of RichJackson
RichJackson

asked on

HBITMAP And BITMAPINFOHEADERS

Hi

What is the relationship between a BITMAPINFOHEADER and a HBITBMAP?

I have a LPBITMAPINFOHEADER but i want a HBITMAP so i can display it in a CStatic.


Cheers

Richard
Avatar of MichaelS
MichaelS

Don't think that you can do it in some easy way. Why you have only LPB...ER?
Avatar of RichJackson

ASKER

I am using AVI api, to return a single frame. The frame data is returned as a packed DIB.

All i want to do is display it!

Thanks Again

Rich
than display dib directly, can you show your code or tell which function do you using?
ASKER CERTIFIED SOLUTION
Avatar of Pacman
Pacman
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I'm not sure if this works with packed DIBs ...
But it's worth a try.
CreateDIBitmap() is definetely my function! Cheers

The only thing is i am struggling with the fourth paramter ptr to initialisation data, i guess i need to manipulate my LPBitmapInfoheader.  But i dunno how!

Thanks Again Richard


 
lpbInit is the bitmap data itself.