Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 1 Document, 3 Concurrent Views Pin
PJ Arends28-Nov-04 17:08
professionalPJ Arends28-Nov-04 17:08 
GeneralRe: 1 Document, 3 Concurrent Views Pin
bitpusher29-Nov-04 5:59
bitpusher29-Nov-04 5:59 
GeneralRe: 1 Document, 3 Concurrent Views Pin
PJ Arends29-Nov-04 7:51
professionalPJ Arends29-Nov-04 7:51 
bitpusher wrote:
I would like to have several views operate/interact with the same open document data set simultaneously. Is this the case here?

Yes.

bitpusher wrote:
I'm a little suspicious because perhaps MFC is asking about which document (data set) to open upon startup?

No, MFC is asking which view to use to display the data. If you had multiple CDocument classes then the question would be which document, but AFAIK you have only one CDocument class.

bitpusher wrote:
is there an easier way to simply display the same document data in separate child windows rather than creating templates?

No, the templates are the core of the MFC Doc/View model

bitpusher wrote:
I would just have the added task of manually messaging this new window to update itself at the right times.

It's not all that difficult. As long as you remember that the document is the central part of your app. All your views do is display your data and pass any user input onto your document. Do not do any actual data manipulation in your CView classes, do it all in your CDocument classes. Whenever you do data manipulation, simply call UpdateAllViews and the MFC framework will update all the active views that are displaying data from the current document.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
GeneralRe: 1 Document, 3 Concurrent Views Pin
Ryan Binns28-Nov-04 17:16
Ryan Binns28-Nov-04 17:16 
QuestionMSFlexgrid distribute? Pin
José Luis Sogorb28-Nov-04 7:24
José Luis Sogorb28-Nov-04 7:24 
GeneralGraph error result returned from 'AxImp.exe'. Pin
h00ps28-Nov-04 6:55
h00ps28-Nov-04 6:55 
QuestionSDK for MP3 ? Pin
lasterix28-Nov-04 6:27
lasterix28-Nov-04 6:27 
AnswerRe: SDK for MP3 ? Pin
Anonymous28-Nov-04 12:21
Anonymous28-Nov-04 12:21 
AnswerRe: SDK for MP3 ? Pin
Michael Dunn28-Nov-04 20:37
sitebuilderMichael Dunn28-Nov-04 20:37 
Generalcreating Menubar in dialog based prj. Pin
ashsri28-Nov-04 6:00
ashsri28-Nov-04 6:00 
GeneralRe: creating Menubar in dialog based prj. Pin
Nick Nougat29-Nov-04 5:30
Nick Nougat29-Nov-04 5:30 
GeneralHeader Pin
BRIMID28-Nov-04 4:35
BRIMID28-Nov-04 4:35 
GeneralRe: Header Pin
Member 153369528-Nov-04 5:53
Member 153369528-Nov-04 5:53 
GeneralRe: Header Pin
BRIMID28-Nov-04 6:05
BRIMID28-Nov-04 6:05 
GeneralRe: Header Pin
PJ Arends28-Nov-04 7:19
professionalPJ Arends28-Nov-04 7:19 
Generalglobal variables Pin
Tomate6628-Nov-04 4:21
Tomate6628-Nov-04 4:21 
GeneralOpen files Pin
vilmer28-Nov-04 2:39
vilmer28-Nov-04 2:39 
GeneralRe: Open files Pin
PJ Arends28-Nov-04 7:31
professionalPJ Arends28-Nov-04 7:31 
GeneralVideo Compression?! Pin
sabzee27-Nov-04 21:43
sabzee27-Nov-04 21:43 
GeneralUCS2 to String ... Pin
rasha200327-Nov-04 21:37
rasha200327-Nov-04 21:37 
GeneralRe: UCS2 to String ... Pin
rasha200330-Nov-04 4:06
rasha200330-Nov-04 4:06 
GeneralQuestion about CEdit and CSpinButtonCtrl Pin
Uwe Keim27-Nov-04 20:53
sitebuilderUwe Keim27-Nov-04 20:53 
GeneralRe: Question about CEdit and CSpinButtonCtrl Pin
John R. Shaw28-Nov-04 9:21
John R. Shaw28-Nov-04 9:21 
GeneralRe: Question about CEdit and CSpinButtonCtrl Pin
Uwe Keim28-Nov-04 15:19
sitebuilderUwe Keim28-Nov-04 15:19 
GeneralRe: Question about CEdit and CSpinButtonCtrl Pin
Ryan Binns28-Nov-04 17:28
Ryan Binns28-Nov-04 17:28 

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.