I'm writing plugin in MFC, and one of my dialogs has zoom button. Pressing on it zoomes the view for 1.5x. The code below worked fine, until I update my illustator. to 18.0.1
error = sAIDocumentViewSuite->GetNthDocumentView(0, &currView);
error = sAIDocumentViewSuite->GetDocumentViewZoom(currView, &currZoom);
currZoom *= 1.5;
error = sAIDocumentViewSuite->SetDocumentViewZoom(currView, currZoom);
Now, I can only see the percentage of zooming, but the view stays unzoomed. But when I close my dialog, the view zooms to needed proportions.
What version was working correctly?
Did you try calling sAIDocument->RedrawDocument( ) ?
Yes, I tried calling sAIDocument->RedrawDocument( ).
But today, after some researching, I found, that this problem might be caused by MFC, not by code behavior. This code works in modeless dialogs, but in modal - it doesnt.