robshere
July 6th, 2007, 03:18 AM
Hai All,
In my project I want to load two diffrent type of bitmaps in the same controll.But my problem lies in while resizing.The controll is resizing according to the winodow and the image over it is also resizing using StrechBlt().
Now if I'm trying to load the second image of the same size of the orginal image into the streached control using LoadBitmap function,and after Invalidate() soon after that my resized contorol is going back to the intial size ,ie,a size that is less than the streached control size.
What I need is the size of the control and the image should presist the resized size of the control .
Also because of the continous redrawing of window I'm getting screen flickering.Please tell me a way to minimise the flickering effect or a way to overcome it.
Thanks In advance
Robs here
In my project I want to load two diffrent type of bitmaps in the same controll.But my problem lies in while resizing.The controll is resizing according to the winodow and the image over it is also resizing using StrechBlt().
Now if I'm trying to load the second image of the same size of the orginal image into the streached control using LoadBitmap function,and after Invalidate() soon after that my resized contorol is going back to the intial size ,ie,a size that is less than the streached control size.
What I need is the size of the control and the image should presist the resized size of the control .
Also because of the continous redrawing of window I'm getting screen flickering.Please tell me a way to minimise the flickering effect or a way to overcome it.
Thanks In advance
Robs here