Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 2.48 KB

iview-interface.md

File metadata and controls

77 lines (50 loc) · 2.48 KB
descriptiontitlems.datef1_keywordshelpviewer_keywordsms.assetid
Learn more about: IView Interface
IView Interface
11/04/2016
IView
AFXWINFORMS/IView
AFXWINFORMS/IView::OnActivateView
AFXWINFORMS/IView::OnInitialUpdate
AFXWINFORMS/IView::OnUpdate
views [MFC]
IView class [MFC]
views [MFC], classes
9321f299-486e-4551-bee9-d2c4a7b91548

IView Interface

Implements several methods that CWinFormsView uses to send view notifications to a managed control.

Syntax

interface class IView 

Members

Public Methods

NameDescription
IView::OnActivateViewCalled by MFC when a view is activated or deactivated.
IView::OnInitialUpdateCalled by the framework after the view is first attached to the document, but before the view is initially displayed.
IView::OnUpdateCalled by MFC after the view's document has been modified; this function allows the view to update its display to reflect modifications.

Remarks

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.

Requirements

Header: afxwinforms.h (defined in assembly atlmfc\lib\mfcmifc80.dll)

IView::OnActivateView

Called by MFC when a view is activated or deactivated.

voidOnActivateView(bool activate);

Parameters

activate
Indicates whether the view is being 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.

voidOnInitialUpdate();

IView::OnUpdate

Called by MFC after the view's document has been modified.

voidOnUpdate();

Remarks

This function allows the view to update its display to reflect modifications.

See also

CWinFormsView Class
CView Class

close