Explain!

This is a discussion on Explain! within the Windows Programming forums, part of the Platform Specific Boards category; someone tell me what is the document-view arhicteture! pls.. give me some clearly explanation on this! secondly,what is the code ...

  1. #1
    Kelvin
    Guest

    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.....................

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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.

  3. #3
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    It also is conducive to having several different "views" of the same "document".
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  4. #4
    kelvin
    Guest

    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

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    223
    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
      }
    }
    zMan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you explain these bitwise operations?
    By 6tr6tr in forum C++ Programming
    Replies: 6
    Last Post: 10-29-2008, 01:19 PM
  2. Please explain?
    By neo_phyte in forum C Programming
    Replies: 3
    Last Post: 08-25-2006, 05:23 AM
  3. Can someone explain to me what this code means
    By Shadow12345 in forum C++ Programming
    Replies: 3
    Last Post: 12-22-2002, 11:36 AM
  4. Replies: 4
    Last Post: 11-19-2002, 08:18 PM
  5. Can someone explain "extern" to me?
    By valar_king in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2001, 12:22 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21