I created a MFC application using the MFC app wizard, with the SDI template. Currently, everything is unchanged. So all my classes are the ones generated by the wizard, straight-forward.
Now I want to edit what the File->Open... menu does. Where do I edit this?
If you don't already have one add a message handler in your app class, like this in the message map:
ON_COMMAND(ID_FILE_OPEN, OnMyFileOpen)
void CXXApp::OnMyFileOpen()
{
...
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.