"How to display bitmaps at runtime"
-
hi, I am using picture control and created a control variable for it.. i need to set bitmap programatically by using the control vareiable i created .. any idea on how to do it... ? and can it be done by setbitmap()?
Harsha
-
hi, I am using picture control and created a control variable for it.. i need to set bitmap programatically by using the control vareiable i created .. any idea on how to do it... ? and can it be done by setbitmap()?
Harsha
If you have a static you can set bitmap with SetBitmap for this control,Is this your question ?
WhiteSky
-
If you have a static you can set bitmap with SetBitmap for this control,Is this your question ?
WhiteSky
i have two bit maps to be displayed on two different conditions on a same picture control.. my question is how we can do it ?
Harsha
-
hi, I am using picture control and created a control variable for it.. i need to set bitmap programatically by using the control vareiable i created .. any idea on how to do it... ? and can it be done by setbitmap()?
Harsha
If you have the bitmap in the resource, create an object of
CBitmap
. callLoadBitmap
function of it and then pass this obejct toSetBitmap
function If you want to load the bitmap from the file, use theLoadImage
function. It will return the handle of HBITMAP, Attach it to CBitmap object and then pass this object to theSetBitmap
function.nave
-
i have two bit maps to be displayed on two different conditions on a same picture control.. my question is how we can do it ?
Harsha
Do you want to show two bitmaps(two status) where you want to change this status when you click a button?then use of SetBitmap.(if isnt your answer can you more explain,please)
WhiteSky
-
If you have the bitmap in the resource, create an object of
CBitmap
. callLoadBitmap
function of it and then pass this obejct toSetBitmap
function If you want to load the bitmap from the file, use theLoadImage
function. It will return the handle of HBITMAP, Attach it to CBitmap object and then pass this object to theSetBitmap
function.nave
ya thanks its working :)
Harsha
-
Do you want to show two bitmaps(two status) where you want to change this status when you click a button?then use of SetBitmap.(if isnt your answer can you more explain,please)
WhiteSky
Thanks whitesky its working with setbitmap:)
Harsha
-
Thanks whitesky its working with setbitmap:)
Harsha
You're welcome ;)
WhiteSky