Click here to Skip to main content
16,018,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: เเปลง code นี้เป็นภาษษซีให้น่อยครับ Pin
Adam Roderick J18-Jan-10 20:56
Adam Roderick J18-Jan-10 20:56 
QuestionLimit Maximizing window Pin
Anu_Bala18-Jan-10 17:37
Anu_Bala18-Jan-10 17:37 
AnswerRe: Limit Maximizing window Pin
Adam Roderick J18-Jan-10 18:04
Adam Roderick J18-Jan-10 18:04 
GeneralRe: Limit Maximizing window Pin
Anu_Bala18-Jan-10 23:17
Anu_Bala18-Jan-10 23:17 
Questionhook windows messages Pin
Sauce!18-Jan-10 16:58
Sauce!18-Jan-10 16:58 
AnswerRe: hook windows messages Pin
Covean18-Jan-10 21:21
Covean18-Jan-10 21:21 
GeneralRe: hook windows messages Pin
Sauce!18-Jan-10 22:57
Sauce!18-Jan-10 22:57 
QuestionMFC How to update CMDIChildWnd from CDocument Pin
baumchen18-Jan-10 14:20
baumchen18-Jan-10 14:20 
Hi, folks

I am thinking of writing a program which opens two files in one window. and these two files needs to be scrolled simulateneously.

(I have to put the scrollbar here as I have multiple views).

I plan to use such a structure

CMDIChildWnd, which has a scrollbar, and CSplitterWnd, its role is to change answer scroll related message such as OnSize, OnScroll.

CView, handles OnDraw, displays file.

CDocument, which has files info.

(I need to take advantage of OnOpenDocument)

the question is, when I load a file (which is handled by CDocument) either by OnOpenDocument() or some user defined open file function, how could I update CMDIChildWnd?

thanks in advance!

baum
AnswerRe: MFC How to update CMDIChildWnd from CDocument Pin
Adam Roderick J18-Jan-10 17:00
Adam Roderick J18-Jan-10 17:00 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen18-Jan-10 17:27
baumchen18-Jan-10 17:27 
QuestionRe: MFC How to update CMDIChildWnd from CDocument [modified] Pin
Adam Roderick J18-Jan-10 17:32
Adam Roderick J18-Jan-10 17:32 
AnswerRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen18-Jan-10 18:01
baumchen18-Jan-10 18:01 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
Adam Roderick J18-Jan-10 18:22
Adam Roderick J18-Jan-10 18:22 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen18-Jan-10 18:29
baumchen18-Jan-10 18:29 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
Adam Roderick J18-Jan-10 18:56
Adam Roderick J18-Jan-10 18:56 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen19-Jan-10 8:13
baumchen19-Jan-10 8:13 
AnswerRe: MFC How to update CMDIChildWnd from CDocument Pin
Nelek18-Jan-10 21:21
protectorNelek18-Jan-10 21:21 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen19-Jan-10 8:10
baumchen19-Jan-10 8:10 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
Nelek19-Jan-10 20:52
protectorNelek19-Jan-10 20:52 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen20-Jan-10 11:09
baumchen20-Jan-10 11:09 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
Nelek20-Jan-10 12:47
protectorNelek20-Jan-10 12:47 
AnswerRe: MFC How to update CMDIChildWnd from CDocument Pin
Cliff Hatch19-Jan-10 9:29
Cliff Hatch19-Jan-10 9:29 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen19-Jan-10 11:33
baumchen19-Jan-10 11:33 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
Cliff Hatch20-Jan-10 9:39
Cliff Hatch20-Jan-10 9:39 
GeneralRe: MFC How to update CMDIChildWnd from CDocument Pin
baumchen20-Jan-10 11:16
baumchen20-Jan-10 11:16 

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.