Link to home
Start Free TrialLog in
Avatar of web37
web37

asked on

views and docs

i have 2 problems:
1. i need to prevent from documents to be created in some conditions, how to do it?
2. i need to draw on the a 2nd view in a coordinates of the corsor which is in the first view, and only there, how to loop for the view? (which is not this pointer)

thanks
Avatar of migel
migel

Hi!
UpdateAllViews with proper hint will help you to part2.
for part1
IMHO you have to derive class DocTemplate and override virtual CDocument* CreateNewDocument(); method
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

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
instead of void CMyView::MoveCursorPos(CPoint point)
it should be void CMyView::DoSpecialDraw(CPoint point)

cheers mate