Message 1 of 2
How to update AutoCAD-View?

Not applicable
09-10-2002
03:46 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My Problem:
I draw a entity for example a polyline. I change the color of the line. Then I open a CDialog with DoModal().
The PROBLEM: The color of line is not changed! After closing the dialog the color is changed.
I think its a problem with actualize the autocad view.
This function does not work:
CView* pActiveView = acedGetAcadFrame()->GetActiveFrame()->GetActiveView();
pActiveView->UpdateData(FALSE);
pActiveView->UpdateWindow();
Could somebody help me? How can I update the view before opening the Dialog?
Thanks for help!
Robert
I draw a entity for example a polyline. I change the color of the line. Then I open a CDialog with DoModal().
The PROBLEM: The color of line is not changed! After closing the dialog the color is changed.
I think its a problem with actualize the autocad view.
This function does not work:
CView* pActiveView = acedGetAcadFrame()->GetActiveFrame()->GetActiveView();
pActiveView->UpdateData(FALSE);
pActiveView->UpdateWindow();
Could somebody help me? How can I update the view before opening the Dialog?
Thanks for help!
Robert