Click here to Skip to main content
15,909,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CEditView Pin
Stuart Dootson14-Feb-09 23:13
professionalStuart Dootson14-Feb-09 23:13 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 0:50
grassrootkit15-Feb-09 0:50 
GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 3:01
professionalStuart Dootson15-Feb-09 3:01 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 5:34
grassrootkit15-Feb-09 5:34 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 22:31
grassrootkit15-Feb-09 22:31 
GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 23:30
professionalStuart Dootson15-Feb-09 23:30 
GeneralRe: CEditView Pin
grassrootkit15-Feb-09 22:54
grassrootkit15-Feb-09 22:54 
GeneralRe: CEditView Pin
Stuart Dootson15-Feb-09 23:26
professionalStuart Dootson15-Feb-09 23:26 
grassrootkit wrote:
But shouldn't that be view's OnFileOpen


Not necessarily - thanks to the wonders of command routing, OnFileOpen can be handled by many different things.

The best way to look at whether your view should be handling OnFileOpen is to think about what your view's responsibilities are - display a view of the document and feed back user interactions with that view. Document management (which is what opening a file counts as) isn't really the responsibility of the view.

It becomes clearer when you move to MDI, or if you have multiple views on a single document:

  • An application has zero to many documents
  • Each document is related to precisely one application, but can have one to many views
  • Each view is related to precisely one document


HTH!

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:00
grassrootkit14-Feb-09 23:00 
GeneralRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:11
grassrootkit14-Feb-09 23:11 
GeneralRe: CEditView // Displaying text Pin
Stuart Dootson14-Feb-09 23:17
professionalStuart Dootson14-Feb-09 23:17 
GeneralRe: CEditView // Displaying text Pin
grassrootkit14-Feb-09 23:27
grassrootkit14-Feb-09 23:27 
QuestionCListCtrl "show selection always" doesn't work in vista aero theme Pin
xanagan66614-Feb-09 21:05
xanagan66614-Feb-09 21:05 
AnswerRe: CListCtrl "show selection always" doesn't work in vista aero theme Pin
Stuart Dootson14-Feb-09 23:14
professionalStuart Dootson14-Feb-09 23:14 
Question871127 - intellisense Pin
ilostmyid214-Feb-09 17:30
professionalilostmyid214-Feb-09 17:30 
AnswerRe: 871127 - intellisense Pin
Stuart Dootson14-Feb-09 23:20
professionalStuart Dootson14-Feb-09 23:20 
GeneralRe: 871127 - intellisense Pin
ilostmyid217-Feb-09 18:21
professionalilostmyid217-Feb-09 18:21 
QuestionToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 13:00
TabascoSauce14-Feb-09 13:00 
AnswerRe: ToUpper and ToLower part of a string in .net C++? Pin
Stuart Dootson14-Feb-09 13:33
professionalStuart Dootson14-Feb-09 13:33 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
TabascoSauce14-Feb-09 15:27
TabascoSauce14-Feb-09 15:27 
GeneralRe: ToUpper and ToLower part of a string in .net C++? Pin
Stuart Dootson14-Feb-09 22:09
professionalStuart Dootson14-Feb-09 22:09 
QuestionList of fonts in Rich Text Edit control? Pin
tiresias214-Feb-09 6:33
tiresias214-Feb-09 6:33 
AnswerRe: List of fonts in Rich Text Edit control? Pin
Stuart Dootson14-Feb-09 6:59
professionalStuart Dootson14-Feb-09 6:59 
GeneralRe: List of fonts in Rich Text Edit control? Pin
tiresias214-Feb-09 7:42
tiresias214-Feb-09 7:42 
GeneralRe: List of fonts in Rich Text Edit control? Pin
Stuart Dootson14-Feb-09 8:27
professionalStuart Dootson14-Feb-09 8:27 

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.