Click here to Skip to main content
16,005,826 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Plz help me urgently(plzzzzzzzz) Pin
Sarath C28-Jun-06 21:45
Sarath C28-Jun-06 21:45 
Questiontwo forms Pin
Desmo1628-Jun-06 21:23
Desmo1628-Jun-06 21:23 
AnswerRe: two forms Pin
Naveen28-Jun-06 21:32
Naveen28-Jun-06 21:32 
GeneralRe: two forms Pin
Desmo1628-Jun-06 22:11
Desmo1628-Jun-06 22:11 
GeneralRe: two forms Pin
Naveen28-Jun-06 22:26
Naveen28-Jun-06 22:26 
GeneralRe: two forms Pin
Desmo1628-Jun-06 22:46
Desmo1628-Jun-06 22:46 
QuestionCommand handlers difference Pin
Rupesh Shivarkar28-Jun-06 21:12
Rupesh Shivarkar28-Jun-06 21:12 
AnswerRe: Command handlers difference Pin
Viorel.28-Jun-06 22:53
Viorel.28-Jun-06 22:53 
In think in case of handlers defined with ON_COMMAND_EX macro, the MFC message dispatcher is able to process your commands in chain manner.

For instance, if you have two handlers for some command -- one in a view class and another in main application frame -- and use ON_COMMAND macro, then after processing the message by the view, no other handler will be called.

But if you use ON_COMMAND_EX macro, and the view’s handler returns FALSE, then MFC will continue routing and will call the main frame’s handler too.

In your sample, the OnCommandEx1 handler will be never called because of previous OnCommand1, even if both of them were declared with ON_COMMAND_EX. This macro has effect only in case of different command target objects.

That’s my opinion.
GeneralRe: Command handlers difference Pin
Rupesh Shivarkar29-Jun-06 1:40
Rupesh Shivarkar29-Jun-06 1:40 
Questionsend and FD_WRITE [modified] Pin
followait28-Jun-06 20:58
followait28-Jun-06 20:58 
AnswerRe: send and FD_WRITE Pin
Laxman Auti28-Jun-06 21:07
Laxman Auti28-Jun-06 21:07 
GeneralRe: send and FD_WRITE [modified] Pin
followait28-Jun-06 21:39
followait28-Jun-06 21:39 
GeneralRe: send and FD_WRITE Pin
Laxman Auti28-Jun-06 22:53
Laxman Auti28-Jun-06 22:53 
AnswerRe: send and FD_WRITE Pin
markkuk28-Jun-06 23:23
markkuk28-Jun-06 23:23 
GeneralRe: send and FD_WRITE Pin
followait29-Jun-06 5:11
followait29-Jun-06 5:11 
QuestionHow to Change the color of Dialog Box Pin
Krishnatv28-Jun-06 20:56
Krishnatv28-Jun-06 20:56 
AnswerRe: How to Change the color of Dialog Box Pin
Rajesh R Subramanian28-Jun-06 20:59
professionalRajesh R Subramanian28-Jun-06 20:59 
AnswerRe: How to Change the color of Dialog Box Pin
Hamid_RT28-Jun-06 21:07
Hamid_RT28-Jun-06 21:07 
AnswerRe: How to Change the color of Dialog Box Pin
Laxman Auti28-Jun-06 21:12
Laxman Auti28-Jun-06 21:12 
AnswerRe: How to Change the color of Dialog Box Pin
Hamid_RT28-Jun-06 21:22
Hamid_RT28-Jun-06 21:22 
AnswerRe: How to Change the color of Dialog Box Pin
mimimimilaw28-Jun-06 22:07
mimimimilaw28-Jun-06 22:07 
QuestionHow to change App icon Pin
Raul Simcic28-Jun-06 20:55
Raul Simcic28-Jun-06 20:55 
AnswerRe: How to change App icon Pin
Sarath C28-Jun-06 21:29
Sarath C28-Jun-06 21:29 
GeneralRe: How to change App icon Pin
Raul Simcic28-Jun-06 23:30
Raul Simcic28-Jun-06 23:30 
QuestionOutlook Object Model Pin
Mahesh Kulkarni28-Jun-06 20:40
Mahesh Kulkarni28-Jun-06 20:40 

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.