From looking around, it appears all you need to do is call GetOpenFileName() to display a standard File Open Common Dialog. However, when I call that, nothing happens. Is there something more I need to do? Here is the current code:
- Code:
m_display.SuspendDisplay();
OPENFILENAME lpOfn;
lpOfn.lpstrFilter = TEXT("Data File (*.dat)\0*.dat\0");
lpOfn.hwndOwner = GetForegroundWindow();
GetOpenFileName(&lpOfn);
m_display.ResumeDisplay();