Solved

New File Message

Posted on 2009-07-14
3
180 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on moodle after upgrade 3 123
lucky13 challenge 11 123
Detect file exist or not 3 132
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 76
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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. …
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.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

895 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

14 Experts available now in Live!

Get 1:1 Help Now