satheesh


{ City } dayton
< Country > usa
* Profession * application system analyst
User No # 3565
Total Questions Posted # 0
Total Answers Posted # 5

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 64
Users Marked my Answers as Wrong # 8
Questions / { satheesh }
Questions Answers Category Views Company eMail




Answers / { satheesh }

Question { 18568 }

What is the difference between OnInitialUpdate and OnUpdate?


Answer

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

Question { 23542 }

What is the use of CCmdTarget ?


Answer

CCmdTraget has the implementation of the Message map.
Message map routes the commands & messages to the member
functions you write to handle them. Key frame work classes
derived from the CCmdtarget includes CWnd, Cview etc..

If you need new user class handel the messages, derive the
class from any of the class which are derived from
CCmdTarget.

Is This Answer Correct ?    20 Yes 5 No


Question { 15817 }

What is document-view architecture ? Give me one real time
example for SDI ?


Answer

MFC applications wizards by default creates an application
skeleton with a document class and view class. This
achetecture separates the data management into these two
classes. The document manages the data of multipule views.
view displays the data and manages the user interaction.

Notepad is simple example for SDI application.

Is This Answer Correct ?    23 Yes 2 No

Question { 10206 }

How to access document object from view ?


Answer

GetDocument() returns the document associated with the view.

Is This Answer Correct ?    14 Yes 1 No

Question { TCS, 14453 }

How to handle command line arguements from simple MFC
application ?


Answer

Using GetCommandLineArgs() function you can get the
arguments in MFC application at any time. In InitInstance
() function you can change the behaviour of the
application using those values.

Is This Answer Correct ?    5 Yes 0 No