I am trying to figure out how to add functionality to my menu resource in VS2010 and I am not sure how to program it so when the user clicks 'New' it will display a dialog box. I know if I use the following code I can generate a message box.
<pre lang="cs">void MFC_Tutorial_Window::OnFileNew()
{
MessageBox("Clicked File->New");
}
Will the same type of thing work for a dialog box and DoModal?
Thanks!