Re: MFC MDI for binary db
From: Dave (noone_at_nowhere.com)
Date: 11/12/04
- Next message: Mike Gleason Jr Couturier: "Re: Fetching binary file linked in URL"
- Previous message: Chris: "MFC MDI for binary db"
- In reply to: Chris: "MFC MDI for binary db"
- Next in thread: Scott McPhillips [MVP]: "Re: MFC MDI for binary db"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Nov 2004 18:35:19 -0000
i think the 'right' method to do this is to have an array of views. it
makes sense that your 'document' is the whole database. then what you are
really doing is creating multiple views of the data. while one use of this
is to create views that are different ways to display the data it can also
be used to display different sections of the same document in copies of the
same type of view. this would be like opening two views of a word document
in the application and scrolling each one to a different part of the
document.
"Chris" <cristian@cae.ca> wrote in message
news:7dd9p057j9mpadv45srallruafhk5pls9s@4ax.com...
> Hi All,
> I created a MFC project as MDI.
> The main data stored in CDocument is a complex structure. This
> structure represent one record of a database (binary database).
> At present I am able to select different records from the db, one by
> one, and to display the content of each record in different views. For
> each selection, my structure, stored in CDoc, is overwrited for the
> selected record.
>
> What I would like to do is: to be able to open and display in views
> the content of 2 or more records (not only one at each time).
> I thought to 2 solutions:
> 1) To use multiple documents (of the same type) in the application ,
> each document to store the content of a separate db record (or
> pointers for CDocument).
> 2) To keep only one Doc in application, but to use an array of
> structures . Each record of the db is represented by the index of the
> array of structures.
> Which solution is the better? I think the first should be the good
> one, but I need some suggestions. Is that the way where I need to use
> GetFirstDocPosition, GetNextDoc, etc? I am not familiar with these
> methods.
> May you could help me to find some demo projects with this feature or
> some documentation.
>
> Thanks for your help.
> Chris
- Next message: Mike Gleason Jr Couturier: "Re: Fetching binary file linked in URL"
- Previous message: Chris: "MFC MDI for binary db"
- In reply to: Chris: "MFC MDI for binary db"
- Next in thread: Scott McPhillips [MVP]: "Re: MFC MDI for binary db"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|