Skip to content

Latest commit

 

History

History
93 lines (79 loc) · 2.87 KB

File metadata and controls

93 lines (79 loc) · 2.87 KB
title IView Interface | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
IView
No header/IView
No header/IView::OnActivateView
No header/IView::OnInitialUpdate
No header/IView::OnUpdate
dev_langs
C++
helpviewer_keywords
views [MFC]
IView class
views, classes
ms.assetid 9321f299-486e-4551-bee9-d2c4a7b91548
caps.latest.revision 23
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

IView Interface

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

Syntax

interface class IView  

Members

Public Methods

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.

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.

void OnActivateView(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.

void OnInitialUpdate();

IView::OnUpdate

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

void OnUpdate();

Remarks

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

See Also

CWinFormsView Class
CView Class