Click here to Skip to main content
15,906,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello!!

Is there any API available in MFC/Win32 to pan a window as in Auto cad or Pro-E.

That is after drawing circle if we need to pan, how to do that in VC++

Thanks,

Regards,
Maha
Posted
Updated 12-Aug-12 23:48pm
v2

1 solution

http://msdn.microsoft.com/en-us/library/bdea5dt6(v=vs.80).aspx[^]

With this functionality you can scroll a part of your window in any direction you want. The part of the screen that becomes invalid has to be explicitely invalidated so that it causes a repaint for that part of the screen only.
Your paint routine should be written as such that it is smart enough to only paint those elements on the screen that have become invalid. This way you can make your screen seem like it is moving without annoying flickering.
 
Share this answer
 
v2

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