Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
It would be using GetScrollPosition in the view that is getting scrolled with the OnScroll and sending it to the other view where you use it with SetScrollPosition before updating all views.

Yes, both views should be derived from CScrollView and each one would have its own scrollbar, but you synchronize one when moving the other

Here[^] is spoken about SetScrollPos and Here[^] about ScrollToPosition

If you manage the actual position of each View in the document, for instance m_pScrollPos_1 and m_pSCrollPos_2, you can call them in your OnDraw and move the actual position of the scroll for this view to the saved point. When you click on a scroll bar just save the new position in the document and call pDoc->UpdateAllViews.

It may have a bit delayment between the one and the other whilst synchronising. But it is a possibility

Regards.
--------
M.D.V. Wink | ;)

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpfull answers is nice, but saying thanks can be even nicer.

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 
QuestionChecking for attached device ( A: drive? ) Pin
Peter Weyzen18-Jan-10 13:57
Peter Weyzen18-Jan-10 13:57 
AnswerRe: Checking for attached device ( A: drive? ) Pin
Garth J Lancaster18-Jan-10 15:28
professionalGarth J Lancaster18-Jan-10 15:28 
GeneralRe: Checking for attached device ( A: drive? ) Pin
Peter Weyzen18-Jan-10 17:30
Peter Weyzen18-Jan-10 17:30 
GeneralRe: Checking for attached device ( A: drive? ) Pin
Garth J Lancaster18-Jan-10 17:33
professionalGarth J Lancaster18-Jan-10 17:33 
GeneralRe: Checking for attached device ( A: drive? ) Pin
Rozis19-Jan-10 2:53
Rozis19-Jan-10 2:53 
GeneralRe: Checking for attached device ( A: drive? ) Pin
Garth J Lancaster19-Jan-10 9:45
professionalGarth J Lancaster19-Jan-10 9:45 
QuestionRe: Checking for attached device ( A: drive? ) Pin
David Crow19-Jan-10 3:15
David Crow19-Jan-10 3:15 
AnswerRe: Checking for attached device ( A: drive? ) Pin
Garth J Lancaster19-Jan-10 10:13
professionalGarth J Lancaster19-Jan-10 10:13 
QuestionMFC CScrollView update problem when scrolling Pin
baumchen18-Jan-10 13:03
baumchen18-Jan-10 13:03 
AnswerRe: MFC CScrollView update problem when scrolling Pin
Nelek18-Jan-10 20:53
protectorNelek18-Jan-10 20:53 
GeneralRe: MFC CScrollView update problem when scrolling Pin
baumchen19-Jan-10 8:01
baumchen19-Jan-10 8:01 

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.