Solved

New File Message

Posted on 2009-07-14
3
176 Views
Last Modified: 2013-11-20
Hiya

How can I post a message in mfc to fire the NewFile event?

John
0
Comment
Question by:IssacJones
  • 2
3 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 24849088
Is this what you want?
AfxGetMainWnd()->PostMessage(ID_FILE_NEW, 0, 0L);
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 250 total points
ID: 24849151
I suspect you might want this
    AfxGetMainWnd()->PostMessage(WM_COMMAND, MAKEWPARAM(ID_FILE_NEW, 0), NULL);


0
 

Author Closing Comment

by:IssacJones
ID: 31603232
Thanks Andy, Excellent!!!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Question regarding Copy/Paste 16 86
Tab names are off by one 5 49
Define unique primary key 9 81
method notes when mouse over in eclipse 5 68
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

705 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

20 Experts available now in Live!

Get 1:1 Help Now