Link to home
Start Free TrialLog in
Avatar of cMan
cMan

asked on

Accessing a device context that allows you to draw on the entire document area, and not just the viewable portion of it.

How can I access the  device context that allows you  to draw on the entire document area, and not just the viewableportion of it. CScrollView::OnDraw provides you with a pDC that represents the entire document area, and not just the viewable portion of it. That is what I need, but I need this from within a CScrollView command handler function. Can I access a device context such as this from within a  command handler function? Basically, right now I am coding my command handler, and the next step is for me to output an array of points to the device context that represents the  entire document area, and not just the viewable portion of it.
ASKER CERTIFIED SOLUTION
Avatar of wyhjin
wyhjin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cMan
cMan

ASKER

Thanks wyhjin, that worked perfectly.