isn't there???......
isn''t there a GDI function to load a bitmap from a file to HBITMAP or DC, instead of the module?
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);
HBITMAP hbmNew=(HBITMAP)LoadImage(NULL,"nameofbitmap.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE / LR_CREATEDIBSECTION);
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);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement