-
Explain!
someone tell me what is the document-view arhicteture! pls..
give me some clearly explanation on this!
secondly,what is the code snippet for the modal dialog boxes?
i wish to know all the answer in here....
i am in such a hurry.....
wellington college!
see yeah.....................
-
It's just a way of doing things, not quite a 'paradigm' just a 'methodology' used by ms in mfc.
Simplistic explanation: The 'document' is data while the 'view' is the GUI. By separating the 'document' from the 'view' into distinct objects it arguably makes writing programs simpler.
-
It also is conducive to having several different "views" of the same "document".
-
Is it?
what is the code snippet for the modal dialog boxes?
can i have the code for this modal dialog boxes?i just wanna the snippet code only? it's urgent...thanks
-
You will need to create your own dialog class... but this is how you
handle it
Code:
void ModifySettings()
{
CMyDialog dlg;
CString strName
int iResult = dlg.DoModal();
if( iResult == IDOK )
{
....code to process result if any
//i.e.
strName = dlg.m_strName;
....
}
else
{
...code to dismiss
}
}