Reputation: 454
For an MFC MDI application, if the user closes the last open document, the menus and toolbars are disabled, except for the File > Open command (menu and button). I'd like if the File > New menu and button item were not disabled. I've tried to find it by debugging through MFC but it's somewhere deep in the MFC framework. Anyone know please?
Upvotes: 1
Views: 705
Reputation: 6040
For the message map of your CWinApp derived application class, add the following line:
ON_COMAND(ID_FILE_NEW, OnFileNew)
Upvotes: 1