ON_COMMAND_EX
-
it seems that ON_COMMAND_EX just works in doc/view architecture. Can anyone give me some tips about it? thank you.
-
Thank you for your reply. I already google it and search it on codeproject and codeguru before posting this message. Yes, it works well for Doc & View architecture. my architecture is CMainFrame and CMyView (derived form CWnd, not CView) and without Doc. And it has a custom tool bar and a custom status bar.
-
it seems that ON_COMMAND_EX just works in doc/view architecture. Can anyone give me some tips about it? thank you.
Do you need
ON_COMMAND_EX()
instead ofON_COMMAND()
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
it seems that ON_COMMAND_EX just works in doc/view architecture. Can anyone give me some tips about it? thank you.
I'm not sure why you think it ONLY works in doc/view. :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Do you need
ON_COMMAND_EX()
instead ofON_COMMAND()
.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I'm not sure why you think it ONLY works in doc/view. :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
I already try some cases, it works well in doc/view case. I get some source codes from sourceforge.net, it uses ON_COMMAND_EX and is not doc/view case. it just has CMainFrame and a view derived from CWnd, without doc.
-
I need process the message in the child window and parent window. child window uses ON_COMMAND_EX and parent window uses ON_COMMAND.
Rockone wrote:
I need process the message in the child window and parent window.
Why would you need to do this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Rockone wrote:
I need process the message in the child window and parent window.
Why would you need to do this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne