?
Solved

ID_FILE_NEW and Splitter

Posted on 2003-11-26
5
Medium Priority
?
307 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 200 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 Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

765 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