Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I want to enable scrolling in Picture control if the size of picture is greater than control.
I found one code also ->[^] but i have to use CComQIPtr<IPicture> in my code ...

My problem is that i am unable to show the part of picture in a control.
For example my picture size is 800*800 and control size is 400*400 than i want to display a part of picture not whole picture in 400*400.
Thanks in advance.

Edited : I want to implement scrolling image using Ipicture Interface with the help of render funtion we can display the part of picture in control but i am unable to do it.
Posted
Updated 16-Nov-10 6:37am
v2
Comments
ARopo 16-Nov-10 8:48am    
CComQIPtr just manages the release of the interface IPicture. You might want to repost this and give more detail on the IPicture interface
[no name] 16-Nov-10 9:11am    
Can not be the picture resized during program execution to fit the window size?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900