Click here to Skip to main content
15,893,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCount number of open documents in MDI [modified] Pin
clintalt8-Aug-06 16:44
clintalt8-Aug-06 16:44 
AnswerRe: Count number of open documents in MDI Pin
Viorel.8-Aug-06 21:36
Viorel.8-Aug-06 21:36 
QuestionHow to add menu to other applications Pin
Dody_DK8-Aug-06 12:37
Dody_DK8-Aug-06 12:37 
AnswerRe: How to add menu to other applications Pin
Hamid_RT8-Aug-06 21:22
Hamid_RT8-Aug-06 21:22 
GeneralRe: How to add menu to other applications Pin
Dody_DK9-Aug-06 2:14
Dody_DK9-Aug-06 2:14 
GeneralRe: How to add menu to other applications Pin
Hamid_RT9-Aug-06 5:52
Hamid_RT9-Aug-06 5:52 
GeneralRe: How to add menu to other applications Pin
Dody_DK9-Aug-06 8:05
Dody_DK9-Aug-06 8:05 
GeneralRe: How to add menu to other applications Pin
Hamid_RT9-Aug-06 22:31
Hamid_RT9-Aug-06 22:31 
Questionc++ Project help asap Pin
klck20008-Aug-06 10:47
klck20008-Aug-06 10:47 
QuestionRe: c++ Project help asap Pin
David Crow8-Aug-06 10:51
David Crow8-Aug-06 10:51 
AnswerRe: c++ Project help asap Pin
klck20008-Aug-06 10:58
klck20008-Aug-06 10:58 
GeneralRe: c++ Project help asap Pin
David Crow8-Aug-06 11:08
David Crow8-Aug-06 11:08 
GeneralRe: c++ Project help asap Pin
klck20008-Aug-06 11:16
klck20008-Aug-06 11:16 
GeneralRe: c++ Project help asap [modified] Pin
markkuk8-Aug-06 11:40
markkuk8-Aug-06 11:40 
GeneralRe: c++ Project help asap Pin
klck20008-Aug-06 11:47
klck20008-Aug-06 11:47 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 3:08
David Crow9-Aug-06 3:08 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 3:33
klck20009-Aug-06 3:33 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 4:55
David Crow9-Aug-06 4:55 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 5:00
klck20009-Aug-06 5:00 
GeneralRe: c++ Project help asap Pin
David Crow9-Aug-06 5:06
David Crow9-Aug-06 5:06 
GeneralRe: c++ Project help asap Pin
klck20009-Aug-06 5:10
klck20009-Aug-06 5:10 
QuestionRe: c++ Project help asap Pin
David Crow6-Oct-06 10:01
David Crow6-Oct-06 10:01 
QuestionGlobal variables crashing my app Pin
Wheatbread8-Aug-06 9:51
Wheatbread8-Aug-06 9:51 
AnswerRe: Global variables crashing my app Pin
Cedric Moonen8-Aug-06 20:26
Cedric Moonen8-Aug-06 20:26 
QuestionCommunication between MainFrm and Document [modified] Pin
titaniumdecoy8-Aug-06 9:41
titaniumdecoy8-Aug-06 9:41 
When a user selects the "Preferences" menu item in my application, it triggers the method CMainFrame::OnEditPreferences() in MainFrm.cpp. At that point I create a dialog and receive input from the user. Now, I need to pass that information on the document (*Doc.cpp).

I have tried GetActiveDocument() but it does not seem to contain my custom data members; do I need to cast it to another type? And if so, what headers do I need to include? Thanks for any help.

EDIT: I solved the problem by moving the OnEditPreferences() method to the document file with the Class Wizard. Sorry for any inconvenience.

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.