C 言語関数:CreateDIBitmap サンプルコード

サンプルコードを検索した結果です。


TITLE : Loading bitmap file into a HBITMAP
hbmfile = CreateDIBitmap(hdcMem, &bmih, CBM_INIT, bmdata, (BITMAPINFO *)&bmih, DIB_RGB_COLORS);.......
http://cboard.cprogramming.com/windows-programming/95713-loading-bitmap-file-into-hbitmap.html


TITLE : Loading bitmap file into a HBITMAP
No this is not all the code! What I basically need to do is be able to read a bitmap file into a memory DC. I can load it no problem and display it straight to the screen using SetDIBitsToDevice(), however I need to be able to read it into a memory DC first so I can BitBlt it myself when needed. I have tried using CreateDIBitmap() with no success. Do I need to do some more conversion on the bitmap before I can use it in a memory DC?.......
http://cboard.cprogramming.com/windows-programming/95713-loading-bitmap-file-into-hbitmap.html
Googleで検索

https://www.google.co.jp/#q=CreateDIBitmap