Click here to Skip to main content
16,011,383 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Missing CWnd Handle Pin
Tim Deveaux3-Dec-00 5:25
Tim Deveaux3-Dec-00 5:25 
GeneralRe: Missing CWnd Handle Pin
3-Dec-00 23:29
suss3-Dec-00 23:29 
GeneralModifying Button Styles Pin
hugoitt2-Dec-00 11:37
hugoitt2-Dec-00 11:37 
GeneralRe: Modifying Button Styles Pin
Tim Deveaux3-Dec-00 6:47
Tim Deveaux3-Dec-00 6:47 
GeneralI need help with CDc!!! Pin
James Bird2-Dec-00 4:29
James Bird2-Dec-00 4:29 
GeneralRe: I need help with CDc!!! Pin
Christian Graus3-Dec-00 13:48
protectorChristian Graus3-Dec-00 13:48 
GeneralDocument , View & Frame Pin
2-Dec-00 3:36
suss2-Dec-00 3:36 
GeneralRe: Document , View & Frame Pin
Tim Deveaux3-Dec-00 7:30
Tim Deveaux3-Dec-00 7:30 
Yes - and his name is Mike Blaszczak! Actually, think he has a big red book in print on this stuff...

Ok - but since 'big red book' is not too precise when dealing with librarians, and that name's a killer to spell, I guess I could venture a short answer.

The doc/view archetecture is part of the MFC, not VC++ per se. (Even Borland's compiler can compile MFC source).

Essentially, the doc/view is an avatar of a Model-View Controller (MVC). You have the blob you're working with (document), and one or more visual representations (views). The visual code (draw, scroll) is separated from the blob code (load, save). Connecting them is some sort of Udate code, and the mainframe lets you control them.

The doc/view perhaps makes more sense when you're working with files that are dealt with as a block (see serialization) - text docs, pictures and the like, as opposed to, say, databases which follow a finer grained transactional model (usually you don't load a whole database to modify it - you take the piece you need) but depending on what you call a document (yes, could even be a database connection) you can squeeze a lot of different apps into this model.

The doc view thing can also allow you to have different views of the same document (say, a hex view of a bitmap as well as wsyiwig) etc. and switch between them.

The doc/view architecture is one application framework (afx) that MFC has to offer, but certainly not all there is to MFC, which in turn is not all there is to VC.

GeneralScreen Capture Pin
1-Dec-00 18:42
suss1-Dec-00 18:42 
GeneralRe: Screen Capture Pin
Suha Aktan4-Dec-00 17:20
Suha Aktan4-Dec-00 17:20 
GeneralExplorer Pin
1-Dec-00 16:23
suss1-Dec-00 16:23 
GeneralMDI Pin
Steve P1-Dec-00 12:26
Steve P1-Dec-00 12:26 
QuestionRedraw notification of dialog members - how? Pin
1-Dec-00 8:02
suss1-Dec-00 8:02 
AnswerRe: Redraw notification of dialog members - how? Pin
1-Dec-00 19:59
suss1-Dec-00 19:59 
GeneralRe: Redraw notification of dialog members - how? Pin
1-Dec-00 23:09
suss1-Dec-00 23:09 
GeneralRe: Redraw notification of dialog members - how? Pin
2-Dec-00 8:17
suss2-Dec-00 8:17 
GeneralRe: Redraw notification of dialog members - how? Pin
2-Dec-00 10:12
suss2-Dec-00 10:12 
GeneralRe: Redraw notification of dialog members - how? Pin
3-Dec-00 9:42
suss3-Dec-00 9:42 
GeneralAccelerators Pin
1-Dec-00 1:13
suss1-Dec-00 1:13 
Generalstl warning Pin
1-Dec-00 0:58
suss1-Dec-00 0:58 
GeneralRe: stl warning Pin
Jonathan Gilligan3-Dec-00 11:11
Jonathan Gilligan3-Dec-00 11:11 
GeneralMouse Capture ant time problems Pin
30-Nov-00 22:15
suss30-Nov-00 22:15 
GeneralSerialization Pin
30-Nov-00 21:45
suss30-Nov-00 21:45 
GeneralRe: Serialization Pin
Tim Deveaux3-Dec-00 7:55
Tim Deveaux3-Dec-00 7:55 
GeneralMS Exchange Pin
Alan Rencher30-Nov-00 8:43
Alan Rencher30-Nov-00 8:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.