|
-
May 10th, 2012, 12:14 AM
#4
Re: MFC Multiple views for different graphs
 Originally Posted by VictorN
Yes, you'll be able to create multiple views, also "each with its own title".
If you ask about "the best approach" withing MFC then IMHO, yes, it is the best.
Thank you, I decided to go for MDI, Multi View Single Doc
 Originally Posted by JohnCz
You have two choices: register different templates for each graph and invoke new file for each of them.
The drawback is you will have document object created for each template.
If you are using the same data to display different graph, you can use template to create initial frame/view/doc and create frames for all other views using the same document instance.
I did it for my database managing my project, to display different views for database.
If you need sample, let me know.
I have a sample of instantiating multiple views of the same document using CMultiDocTemplate, but I have a few questions.
My Applications takes data from a proprietary USB HID device, I have communications USB-PC set up and working properly. The data sent via USB contains information for several different graphs, unfortunately I cannot go more into detail regarding the type of data being sent. Can, and should, I handle the data reception and parsing in the document class? And, do I send the parsed data to each separate view from the Document class, or do I poll the Document class from each view? The parsed data is to be stored in a vector (or similar) data type and then plotted. I will have a different vector for each graph.
Thanks, ocm
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|