Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture Control Bitmap Select and Resize

Status
Not open for further replies.

sweep123

Technical User
May 1, 2003
185
GB
I have a Picture control on a dialog, now I want to display two images on this Picture control. Load the first image (Button click) then load the second as a result of a different event.
Each image need to be scaled down to fit into the Picture control.

I have set the Image property of the Picture control to the first bitmap I wish to display. But how can I change the image on display to the second image?

I have create a member variable for the picture control, but cant find any methods to select a different bitmap.

Also I cant find any methods to 'rescale to fit' the bitmap to the Picture control.
 
Thanks for the link. Just one problem, I am using MFC so need to get hold of the pointer to the DC (hdc) of the Picture control in order to do the resizing.

How can I get this pointer.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top