What is the difference between OnInitialUpdate and OnUpdate?

Answers were Sorted based on User's Feedback



What is the difference between OnInitialUpdate and OnUpdate?..

Answer / adil mir ajk uni mzd

OnInitialUpdate( ) is a virtual view function Called by the
framework after the view is first attached to the document,
but before the view is initially displayed. The default
implementation of this function calls the OnUpdate member
function
OnUpdate() is called by the framework when the doc has been
modified.It is actually called by UpdateAllViews() to
reflect changes in all the views associated with the doc.

Is This Answer Correct ?    3 Yes 0 No

What is the difference between OnInitialUpdate and OnUpdate?..

Answer / satheeshkedarisetti

Both are uses for to update the view. OnInitialUpdate()
updates the view while initialization, this function called
by framework while initialization. but default
implemenation calls OnUpdate function. if the window is
resizable or it has scroll bars, use OnUpdate() to change
the scroll limits and document changes.

Is This Answer Correct ?    2 Yes 0 No

What is the difference between OnInitialUpdate and OnUpdate?..

Answer / krishna akkulu

Both update the view, But

OnInitialUpdate, called when the view is first created
OnUpdate, called when the document updates its views

Is This Answer Correct ?    3 Yes 1 No

What is the difference between OnInitialUpdate and OnUpdate?..

Answer / priyanka

OnInitialUpdate() is called after a view is first attached
to the doc and before it gets displayed.We can override it
to put some initializations containing info abt the doc.It
calls OnUpdate().
OnUpdate() is called by the framework when the doc has been
modified.It is actually called by UpdateAllViews() to
reflect changes in all the views associated with the doc.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between OnInitialUpdate and OnUpdate?..

Answer / jianhua wang

OnInitialUpdate( ) is a virtual view function Called by the
framework after the view is first attached to the document,
but before the view is initially displayed. The default
implementation of this function calls the OnUpdate member
function
OnUpdate( ) is a virtual view function Called by the
framework after the view's document has been modified; this
function is called by CDocument::UpdateAllViews and allows
the view to update its display to reflect those modifications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MFC Interview Questions

what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


How to handle RTTI in MFC ?

1 Answers  


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Given two processes, how can they share memory?

2 Answers   Microsoft,


Explain StretchBlt and BitBlt

1 Answers  






1)dynamic creation of a Button ?

2 Answers   TCS,


How can i implement the dynamic menus in MFC plz give the code

2 Answers  


Tell me the different controls in MFC ?

5 Answers  


What is mfc class hierarchy?

0 Answers  


19)how to set Back Ground Picture to a Dialog Box in MFC ?

1 Answers  


plzz tell me what we can do and dont in tally ERP & sap business one?

0 Answers  


what is message loop how mfc does it internally?

4 Answers   Aspire,


Categories