我想在 Windows 7 中显示 CFileDialog
,如下图所示。
根据 msdn
if
OFN_ENABLETEMPLATE
is set andOFN_EXPLORER
flag is not set, the system uses the template to create an old-style dialog box that replaces the default dialog box.
但即使在这样做之后,我得到的也是这样的。
请帮忙!
最佳答案
试试这个:
CFileDialog fd(1,0,0,0,0,0,0,FALSE);
fd.m_ofn.lStructSize = sizeof(OPENFILENAME_NT4);
fd.DoModal();
CTOR 的最后一个参数指定 Vista-style 为 false,sizeof
的结构大小用于反射(reflect) NT4 文件对话框。
关于c++ - 在 Windows 7 中显示 XP 风格的 CFileDialog,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6856141/