Solved

ID_FILE_NEW and Splitter

Posted on 2003-11-26
5
289 Views
Last Modified: 2013-11-20
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
Comment
Question by:daSplash
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 50 total points
ID: 9824849
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
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 11850387
My comment should provide the solution
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now