• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

ID_FILE_NEW and Splitter


I have a document with three different kinds of splitter windows
(from CControlBar). Each of them has a included Dialog. When I open my
application without any of these splitters, ID_FILE_NEW command is
passed correctly to my application. But when some of them are active
(have the focus) or when I start my program and in the beginning, some
splitters are created and there's no view yet, the ID_FILE_NEW command
from when I press strg+N is inactive or I don't find, where to place
the correct messagehandler. I've tried to catch it in the splitter and
in the dialog but it won't help. Can I say somewhere that ID_FILE_NEW
or any other command shall always invoke the OnFileNew() routine of my
application object?
  • 2
1 Solution
AndyAinscowFreelance programmer / ConsultantCommented:
Is it an SDI/MDI app?  If so then put your message handler in the main frame of your app (CMainFrame is the default name).
AndyAinscowFreelance programmer / ConsultantCommented:
My comment should provide the solution
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now