Zoom (scale) a Window

I would like to find some sample 'C' (not C++) code that shows how to zoom and center a drawing in a Win95/98/NT app in 'C' using the Win32 API.  

I'm using SetMapMode and the associated windows and viewpoint org and ext functions.  I need to be able to click on a point in a drawing and center it (or scroll it) as well as scale it larger and smaller.  I managed to get the zoom code working, but I can't figure out how to center the selected point in the window and when I zoom larger, the drawing goes out of the window..  
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
arvidqAuthor Commented:
Thanks for the pointer.  I don't know why my search of MSDN didn't find this sample, but it may be because I searched on ZOOMING instead of ZOOMIN.  Also, this example doesn't use SetMapMode and the related functions, but on first glance, it does look like it will work.  I'll be implementing it very soon.

Thanks again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.