load bitmap..............
-
how can i load image from c: directory and then making a resouce ID for that image using coding as bmp.loadbitmap require resource ID of bitmap. plz help..
If you want to do drawing with your bitmap, use the LoadImage() function, with hinst as NULL, lpszName as the path to your bitmap, uType as
IMAGE_BITMAP
and fuLoad asLR_LOADFROMFILE
. This will then return aHANDLE
which can be used in GDI drawing functions. Regards, --Perspx"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds -
how can i load image from c: directory and then making a resouce ID for that image using coding as bmp.loadbitmap require resource ID of bitmap. plz help..
-
If you want to do drawing with your bitmap, use the LoadImage() function, with hinst as NULL, lpszName as the path to your bitmap, uType as
IMAGE_BITMAP
and fuLoad asLR_LOADFROMFILE
. This will then return aHANDLE
which can be used in GDI drawing functions. Regards, --Perspx"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds -
using HBITMAP hbitmap = (HBITMAP)LoadImage(NULL,"D:\\a.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE); but how can make resource ID of this image.
-
using HBITMAP hbitmap = (HBITMAP)LoadImage(NULL,"D:\\a.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE); but how can make resource ID of this image.
ani_ikram wrote:
how can make resource ID of this image.
You can't. Only resources have resource IDs!
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
i need resource id in some method is there anyway to create resource id while loading image .
As Mark said, resource ID's are for resources only. What is it that you are trying to achieve? Regards, --Perspx
"I've got my kids brainwashed: You don't use Google, and you don't use an iPod." - Steve Ballmer
"Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen an angry penguin charging at them in excess of 100mph." - Linus Torvalds