The only thing you need are the actual bitmap bits and the color information for that bitmap.
use CBitmap's CreateBitmap function for that and extract the bitmap dimensions and colors from that buffer.
But, I don't thing there is any way to pass the whole buffer to the bitmap and expect that the class will initialize itself.
If you want to load a bitmap from a file, you may use LoadImage function which returns a HBITMAP and then use that to further initialize your class. [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal... once stated: methane@personal.ro
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.