I want to display CFileDialog
开发者_开发问答like the image below in Windows 7.
As per 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.
But even after doing that what I get is something like this.
Please help!
Try this:
CFileDialog fd(1,0,0,0,0,0,0,FALSE);
fd.m_ofn.lStructSize = sizeof(OPENFILENAME_NT4);
fd.DoModal();
The last parameter to CTOR specifies Vista-style to be false, and structure size of sizeof
ed with to reflect NT4 file-dialog.
I don't think you can. That windows belong to OS and is not implemented anymore. The the closest thing you can use is the old-style dialog box.
You can try to customize this one by hooking the window but it's not easy and I don't thing it worth.
精彩评论