isn't there???......

Started by
1 comment, last by AlexM 24 years ago
isn''t there a GDI function to load a bitmap from a file to HBITMAP or DC, instead of the module?
Advertisement
yes, there''s a bitmap loading function for getting a bmp from a file... its the same one that is used to get a bmp from a resource.... LoadImage

HBITMAP hbmNew=(HBITMAP)LoadImage(NULL,"nameofbitmap.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE / LR_CREATEDIBSECTION);

Get off my lawn!

quote:Original post by TANSTAAFL

yes, there''s a bitmap loading function for getting a bmp from a file... its the same one that is used to get a bmp from a resource.... LoadImage

HBITMAP hbmNew=(HBITMAP)LoadImage(NULL,"nameofbitmap.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE / LR_CREATEDIBSECTION);


Get off my lawn!

This topic is closed to new replies.

Advertisement