Click to See Complete Forum and Search --> : How to make window call OnDraw() of its views?


DRider
August 3rd, 1999, 07:47 AM
I have SDI application and split it for two views. And when i proccess mesg (menu item chosen) i delete view in one part of split window.
How can i call OnDraw() of all views of that window from itself?
Thanks.

Wayne Fuller
August 3rd, 1999, 08:03 AM
From View,

GetDocument()->UpdateAllViews(NULL);

From MainFrame,

GetActiveDocument()->UpdateAllViews(NULL);

Wayne

Will Rothwell
August 3rd, 1999, 08:06 AM
Try Invalidate() and see if it does what you want.

Will

wind
August 5th, 1999, 03:28 AM
m_Splitter.GetPane(row,col)->Invalidate();



or:

SendMessage(m_Splitter.GetPane(row.col)->m_hWnd,
WM_PAINT,0,0);





the beautiful story made me cry.