description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: IView Interface |
IView Interface |
11/04/2016 |
|
|
9321f299-486e-4551-bee9-d2c4a7b91548 |
Implements several methods that CWinFormsView uses to send view notifications to a managed control.
interface class IView
Name | Description |
---|---|
IView::OnActivateView | Called by MFC when a view is activated or deactivated. |
IView::OnInitialUpdate | Called by the framework after the view is first attached to the document, but before the view is initially displayed. |
IView::OnUpdate | Called by MFC after the view's document has been modified; this function allows the view to update its display to reflect modifications. |
IView
implements several methods that CWinFormsView
uses to forward common view notifications to a hosted managed control. These are OnInitialUpdate, OnUpdate and OnActivateView.
IView
is similar to CView, but is used only with managed views and controls.
For more information on using Windows Forms, see Using a Windows Form User Control in MFC.
Header: afxwinforms.h (defined in assembly atlmfc\lib\mfcmifc80.dll)
Called by MFC when a view is activated or deactivated.
void OnActivateView(bool activate);
activate
Indicates whether the view is being activated or deactivated.
Called by the framework after the view is first attached to the document, but before the view is initially displayed.
void OnInitialUpdate();
Called by MFC after the view's document has been modified.
void OnUpdate();
This function allows the view to update its display to reflect modifications.