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

C / C++ / MFC

 
GeneralRe: Prefered base Address. Pin
cmk5-Dec-03 22:06
cmk5-Dec-03 22:06 
GeneralRe: Prefered base Address. Pin
Prakash Nadar5-Dec-03 22:44
Prakash Nadar5-Dec-03 22:44 
GeneralRe: Prefered base Address. Pin
cmk5-Dec-03 23:42
cmk5-Dec-03 23:42 
GeneralRe: Prefered base Address. Pin
Bo Hunter6-Dec-03 11:11
Bo Hunter6-Dec-03 11:11 
GeneralRe: Prefered base Address. Pin
Prakash Nadar6-Dec-03 14:47
Prakash Nadar6-Dec-03 14:47 
GeneralByte swapping questions Pin
fuzzbuzz5-Dec-03 14:24
fuzzbuzz5-Dec-03 14:24 
GeneralRe: Byte swapping questions Pin
cmk5-Dec-03 19:41
cmk5-Dec-03 19:41 
Generaldoc/view question in MDI Pin
rkhuang5-Dec-03 14:06
rkhuang5-Dec-03 14:06 
i have a couple of quick questions on MFC-based MDI apps, that hopefully you can help me out with. i'm looking over some books, but none of them have the answers. maybe they're too basic... but i can't figure out for the life of me. and there aren't that many win32 programmers around me, and ones who do don't know it either.

anyway, 3 questions:

1. from my CMainFrame (derived from CMDIFrameWnd), how do i traverse through each existing (open) CDocument? i know i can go through MDINext() to retrieve each view, and then call GetDocument() on each view. but MDINext() also activates the view, which i don't want. i want to do it in the background, send a message or call a function on the CDocument objects. how?

2. how do i make CMainFrame create a new CDocument/CView in code? i know it starts from CWndApp::OnFileNew, but what exactly do i want write in code? for instance,

CMainFrame::OnMakeNewView()
{
// what do i write in here?
}

3. how do i create a new CView on the same CDocument in code? i can goto the menu and select 'Window->New Window', and that will create a new view on my active document. but how do i do that in code?

these seem like really easy questions, but no one seems to know and i can't find any good information on them. can you help me out, or point me somewhere on the web?



ron huang
rkhuang@hotmail.com
GeneralRe: doc/view question in MDI Pin
kjessee5-Dec-03 15:11
kjessee5-Dec-03 15:11 
GeneralQuestion regarding Getting File Path Pin
Deepak Samuel5-Dec-03 13:56
Deepak Samuel5-Dec-03 13:56 
GeneralRe: Question regarding Getting File Path Pin
Jörgen Sigvardsson5-Dec-03 14:11
Jörgen Sigvardsson5-Dec-03 14:11 
GeneralChallenge to the geek in you! Pin
BaldwinMartin5-Dec-03 11:53
BaldwinMartin5-Dec-03 11:53 
GeneralVC error but not in gcc. Pin
Tili5-Dec-03 11:27
Tili5-Dec-03 11:27 
GeneralRe: VC error but not in gcc. Pin
Jörgen Sigvardsson5-Dec-03 13:53
Jörgen Sigvardsson5-Dec-03 13:53 
GeneralRe: VC error but not in gcc. Pin
Michael Dunn5-Dec-03 17:39
sitebuilderMichael Dunn5-Dec-03 17:39 
GeneralError: Exception Breakpoint Pin
haritadala5-Dec-03 10:07
haritadala5-Dec-03 10:07 
Generalcommand-line arguments in VS7 Pin
karunswaroop5-Dec-03 8:27
karunswaroop5-Dec-03 8:27 
GeneralRe: command-line arguments in VS7 Pin
Michael P Butler5-Dec-03 8:42
Michael P Butler5-Dec-03 8:42 
GeneralRe: command-line arguments in VS7 Pin
karunswaroop5-Dec-03 9:33
karunswaroop5-Dec-03 9:33 
GeneralPrinting 2 Pages Per Sheet Pin
K. Shaffer5-Dec-03 7:58
K. Shaffer5-Dec-03 7:58 
GeneralRe: Printing 2 Pages Per Sheet Pin
Steve S9-Dec-03 0:59
Steve S9-Dec-03 0:59 
QuestionFILETIME? DosDateTimeToFileTime() ? Pin
Amit Dey5-Dec-03 7:48
Amit Dey5-Dec-03 7:48 
AnswerRe: FILETIME? DosDateTimeToFileTime() ? Pin
Michael Dunn5-Dec-03 17:46
sitebuilderMichael Dunn5-Dec-03 17:46 
GeneralRe: FILETIME? DosDateTimeToFileTime() ? Pin
Amit Dey5-Dec-03 22:06
Amit Dey5-Dec-03 22:06 
GeneralRe: FILETIME? DosDateTimeToFileTime() ? Pin
Michael Dunn6-Dec-03 0:33
sitebuilderMichael Dunn6-Dec-03 0:33 

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.