[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

ID_FILE_NEW and Splitter

Hi,

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?
0
daSplash
Asked:
daSplash
  • 2
1 Solution
 
AndyAinscowCommented:
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).
0
 
AndyAinscowCommented:
My comment should provide the solution
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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