Click here to Skip to main content
15,895,656 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Communicating within splitter frame - advice needed Pin
Iain Clarke, Warrior Programmer25-Sep-09 21:38
Iain Clarke, Warrior Programmer25-Sep-09 21:38 
If you're making a change to something both views will see, then you should be making that change in the document, and use UpdateAllViews to "tell" the views that something has changed and they should do something about it.

If you're adding / removing views, then neither the view(s) or the document are the right place to do that. I'd suggest the frame holding the views, either the CChildFrame or CMainFrame (for SDI) would be the right place to handle any "add a new view", "kill a view", "change a view" message.

UpdateAllViews is *not* the place to be murdering Views in their sleep.

I hope that helps,

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

Questionfilter the list of files in a CBCGPListCtrl by extension [modified] Pin
MrKBA24-Sep-09 6:19
MrKBA24-Sep-09 6:19 
AnswerRe: filter the list of files in a CBCGPListCtrl by extension Pin
Rolf Kristensen26-Sep-09 7:42
Rolf Kristensen26-Sep-09 7:42 
QuestionCdialog constructed/create Pin
ForNow24-Sep-09 5:49
ForNow24-Sep-09 5:49 
QuestionRe: Cdialog constructed/create Pin
David Crow24-Sep-09 7:09
David Crow24-Sep-09 7:09 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 7:29
ForNow24-Sep-09 7:29 
QuestionRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:01
David Crow24-Sep-09 8:01 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:08
ForNow24-Sep-09 8:08 
QuestionRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:10
David Crow24-Sep-09 8:10 
AnswerRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:24
ForNow24-Sep-09 8:24 
GeneralRe: Cdialog constructed/create Pin
David Crow24-Sep-09 8:32
David Crow24-Sep-09 8:32 
GeneralRe: Cdialog constructed/create Pin
ForNow24-Sep-09 8:50
ForNow24-Sep-09 8:50 
QuestionDWORD Time Puzzle Pin
phil241524-Sep-09 5:36
phil241524-Sep-09 5:36 
AnswerRe: DWORD Time Puzzle Pin
Stuart Dootson24-Sep-09 6:13
professionalStuart Dootson24-Sep-09 6:13 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 3:46
phil241525-Sep-09 3:46 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 4:12
professionalStuart Dootson25-Sep-09 4:12 
GeneralRe: DWORD Time Puzzle Pin
phil241525-Sep-09 5:03
phil241525-Sep-09 5:03 
GeneralRe: DWORD Time Puzzle Pin
Stuart Dootson25-Sep-09 10:48
professionalStuart Dootson25-Sep-09 10:48 
GeneralRe: DWORD Time Puzzle Pin
phil241527-Sep-09 23:05
phil241527-Sep-09 23:05 
QuestionHow to prevent accelerators while certain childs have focus? Pin
i96danma24-Sep-09 5:28
i96danma24-Sep-09 5:28 
QuestionFast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
D_code_writer24-Sep-09 4:20
D_code_writer24-Sep-09 4:20 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Michael Schubert24-Sep-09 5:31
Michael Schubert24-Sep-09 5:31 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
molesworth24-Sep-09 6:04
molesworth24-Sep-09 6:04 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Rick York24-Sep-09 6:56
mveRick York24-Sep-09 6:56 
AnswerRe: Fast square root algorithm and using SSE Intrinsics to boost floating point calculation performance Pin
Luc Pattyn24-Sep-09 7:55
sitebuilderLuc Pattyn24-Sep-09 7:55 

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.