as2003
asked on
mfc mdi onfileopen
Although I have plenty of c++ experience, I'm new to mfc and don't know what I'm doing.
When the user clicks 'Open file...' the open file dialog pops up, the user can select a file and click ok. All standard stuff so far. I expect the dialog returns the address of the selected file somehow but I don't know how to find it. I tried adding a message handler for ID_FILE_OPEN in XDDT.cpp using the event handler wizard.
void CXDDTApp::OnFileOpen()
{
AfxMessageBox("test");
// TODO: Add your command handler code here
}
but it makes no difference.
When the user clicks 'Open file...' the open file dialog pops up, the user can select a file and click ok. All standard stuff so far. I expect the dialog returns the address of the selected file somehow but I don't know how to find it. I tried adding a message handler for ID_FILE_OPEN in XDDT.cpp using the event handler wizard.
void CXDDTApp::OnFileOpen()
{
AfxMessageBox("test");
// TODO: Add your command handler code here
}
but it makes no difference.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.