Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSetTimer, nIDEvent and timer identification Pin
Dimitris Vikeloudas19-Jul-06 1:41
Dimitris Vikeloudas19-Jul-06 1:41 
AnswerRe: SetTimer, nIDEvent and timer identification Pin
Kurt _B19-Jul-06 2:57
Kurt _B19-Jul-06 2:57 
GeneralRe: SetTimer, nIDEvent and timer identification Pin
Dimitris Vikeloudas19-Jul-06 3:17
Dimitris Vikeloudas19-Jul-06 3:17 
GeneralRe: SetTimer, nIDEvent and timer identification [modified] Pin
bosfan19-Jul-06 4:06
bosfan19-Jul-06 4:06 
QuestionMenus Disable when Switch from One View to Another View. [modified] Pin
Uday Janaswamy19-Jul-06 1:30
Uday Janaswamy19-Jul-06 1:30 
AnswerRe: Menus Disable when Switch from One View to Another View. Pin
Steve S19-Jul-06 1:49
Steve S19-Jul-06 1:49 
GeneralRe: Menus Disable when Switch from One View to Another View. Pin
Uday Janaswamy19-Jul-06 1:57
Uday Janaswamy19-Jul-06 1:57 
GeneralRe: Menus Disable when Switch from One View to Another View. Pin
Steve S19-Jul-06 6:34
Steve S19-Jul-06 6:34 
You can handle commands (and hence UI updating) in any of:

Frame - if you've derived your own frame window
Document - even though it isn't a window!
View - the active one

There is a series of articles in MSJ (now MSDN magazine) which you should still be able to find at the MSDN website, that explain how the routing works in some depth. Essentially, it's up to you as the app designer to determine where the appropriate/correct place for handlers is. For example, handling File/Print would generally be in the document class (since it applies irrespective of the view), whereas edit menu items tend to be managed by the view. If you have multiple views (either SDI switching or MDI) then it is perfectly possible that you have handlers in each view. However, only one of these handlers/UI updates will be called, and it will be the one in the object associated with the active view.



Steve S
Developer for hire
QuestionTAB CONTROL [modified] Pin
ashish dogra19-Jul-06 0:38
ashish dogra19-Jul-06 0:38 
AnswerRe: TAB CONTROL Pin
Hamid_RT19-Jul-06 2:27
Hamid_RT19-Jul-06 2:27 
Questiondouble to CString and back Pin
Desmo1619-Jul-06 0:29
Desmo1619-Jul-06 0:29 
AnswerRe: double to CString and back Pin
see me19-Jul-06 0:48
see me19-Jul-06 0:48 
AnswerRe: double to CString and back Pin
Roland Pibinger19-Jul-06 8:28
Roland Pibinger19-Jul-06 8:28 
AnswerRe: double to CString and back Pin
Naveen19-Jul-06 0:48
Naveen19-Jul-06 0:48 
AnswerRe: double to CString and back Pin
Ștefan-Mihai MOGA19-Jul-06 0:50
professionalȘtefan-Mihai MOGA19-Jul-06 0:50 
AnswerRe: double to CString and back Pin
Hamid_RT19-Jul-06 2:37
Hamid_RT19-Jul-06 2:37 
GeneralRe: double to CString and back Pin
Desmo1619-Jul-06 3:39
Desmo1619-Jul-06 3:39 
GeneralRe: double to CString and back [modified] Pin
toxcct19-Jul-06 3:40
toxcct19-Jul-06 3:40 
GeneralRe: double to CString and back Pin
Zac Howland19-Jul-06 4:32
Zac Howland19-Jul-06 4:32 
GeneralRe: double to CString and back Pin
toxcct19-Jul-06 4:46
toxcct19-Jul-06 4:46 
GeneralRe: double to CString and back [modified] Pin
Zac Howland19-Jul-06 4:55
Zac Howland19-Jul-06 4:55 
GeneralRe: double to CString and back Pin
toxcct19-Jul-06 5:00
toxcct19-Jul-06 5:00 
QuestionGDI+ and Zooming on the picture ... Pin
Hadi Rezaee19-Jul-06 0:22
Hadi Rezaee19-Jul-06 0:22 
QuestionFinding if the target platform supports 64 bit Arithmetic Pin
ComplexLifeForm19-Jul-06 0:19
ComplexLifeForm19-Jul-06 0:19 
AnswerRe: Finding if the target platform supports 64 bit Arithmetic Pin
Steve S19-Jul-06 1:39
Steve S19-Jul-06 1:39 

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.