Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a CArray of structures containing other CArrays? Pin
toxcct27-Jan-04 8:43
toxcct27-Jan-04 8:43 
GeneralRe: a CArray of structures containing other CArrays? Pin
b_girl28-Jan-04 3:33
b_girl28-Jan-04 3:33 
AnswerRe: a CArray of structures containing other CArrays? Pin
Christian Graus27-Jan-04 9:40
protectorChristian Graus27-Jan-04 9:40 
GeneralError Program Pin
Member 64882827-Jan-04 6:14
Member 64882827-Jan-04 6:14 
GeneralRe: Error Program Pin
Steve S27-Jan-04 6:54
Steve S27-Jan-04 6:54 
GeneralRe: Error Program Pin
John R. Shaw27-Jan-04 8:53
John R. Shaw27-Jan-04 8:53 
QuestionHow to associate image with CStatic?? Pin
Dominik Reichl27-Jan-04 6:05
Dominik Reichl27-Jan-04 6:05 
Generalsmall design question C++/MFC Pin
Maximilien27-Jan-04 5:23
Maximilien27-Jan-04 5:23 
I have an application with a single document; I use the doc/view architecture to manage the main views ( 3d views ), and I have a couple of other "views" ( not CView ) that display some data from the document.

When loading a document, I need to fill the other views ...

I'm not sure exactly where to do this.

I handle the void MyApp::OnFileOpen() to fill in the CFileDialog with a custom filter and extensions list, and call CWinApp::OpenDocumentFile (sPath);

void CBuild_itApp::OnFileOpen() 
{
 // file dialog stuff to get the name.
 // will take care of creating the document object.
 CWinApp::OpenDocumentFile (sPath);

 // I can add stuff here
 FillInOtherViews();
}


I could add calls to the end of that method to fill in the other views, but it does not look kosher. I can also trigger a notification ( with observers that I already use elsewhere ) to make the other views handle themselves.

Any thoughts ?

Thanks.



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: small design question C++/MFC Pin
valikac27-Jan-04 6:14
valikac27-Jan-04 6:14 
GeneralExpression analysis Pin
Goh Hui Beng27-Jan-04 5:10
Goh Hui Beng27-Jan-04 5:10 
GeneralChoose language at runtime Pin
MyttO27-Jan-04 5:02
MyttO27-Jan-04 5:02 
GeneralRe: Choose language at runtime Pin
Mukkie27-Jan-04 7:42
Mukkie27-Jan-04 7:42 
GeneralRe: Choose language at runtime Pin
MyttO27-Jan-04 21:59
MyttO27-Jan-04 21:59 
GeneralExplicit loading of extension DLL Pin
spingkoy27-Jan-04 4:21
spingkoy27-Jan-04 4:21 
GeneralRe: Explicit loading of extension DLL Pin
basementman27-Jan-04 5:51
basementman27-Jan-04 5:51 
GeneralRe: Explicit loading of extension DLL Pin
Mukkie27-Jan-04 7:44
Mukkie27-Jan-04 7:44 
GeneralAny idea about editing mpeg2 files Pin
habiburrehman27-Jan-04 4:17
habiburrehman27-Jan-04 4:17 
GeneralDebugging question Pin
Cedric Moonen27-Jan-04 3:16
Cedric Moonen27-Jan-04 3:16 
GeneralRe: Debugging question Pin
toxcct27-Jan-04 3:32
toxcct27-Jan-04 3:32 
GeneralRe: Debugging question Pin
Cedric Moonen27-Jan-04 3:52
Cedric Moonen27-Jan-04 3:52 
GeneralRe: Debugging question Pin
Mike Dimmick27-Jan-04 3:50
Mike Dimmick27-Jan-04 3:50 
GeneralRe: Debugging question Pin
Cedric Moonen27-Jan-04 4:01
Cedric Moonen27-Jan-04 4:01 
Generaltab controls (is there a restriction on the number of edit boxes in a dialog box?) Pin
Member 83856927-Jan-04 3:10
Member 83856927-Jan-04 3:10 
GeneralRe: tab controls (is there a restriction on the number of edit boxes in a dialog box?) Pin
Carlos Antollini27-Jan-04 3:38
Carlos Antollini27-Jan-04 3:38 
GeneralRe: tab controls (is there a restriction on the number of edit boxes in a dialog box?) Pin
Member 83856927-Jan-04 16:15
Member 83856927-Jan-04 16:15 

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.