New cool Windows 2000 Open File Dialogs with MFC
-
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks
You probably need to get the latest version of the shell DLL's for each OS. which may or maynot be available in a Service pack. ================== The original message was: Does anybody know what to do to use the new Open File Dialog
that is now standard on Windows 2000 ? My app works fin on
W2000 but the Open File Dialog looks exactly the same way as
under Windows 95/98/NT.Thanks
-
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks
In any case, it might be safer to use the old dialog box, unless you are planning to make your program only W2000 compatible. The other option is to use an OS check and open a different box for each setting...however, this might complicate things depending on how the API for the new boxes works. It may auto-detect for you, but you never know. Best thing is to get the docs from MS and then implement it.
================== The original message was: Does anybody know what to do to use the new Open File Dialog
that is now standard on Windows 2000 ? My app works fin on
W2000 but the Open File Dialog looks exactly the same way as
under Windows 95/98/NT.Thanks
-
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks
New Open File dialog is available only on Windows 2000 and in order to use it you have to use new version of OPENFILENAME structure that is defined in platform SDK 2000 as following: typedef struct tagOFN { DWORD lStructSize; HWND hwndOwner; HINSTANCE hInstance; LPCTSTR lpstrFilter; LPTSTR lpstrCustomFilter; DWORD nMaxCustFilter; DWORD nFilterIndex; LPTSTR lpstrFile; DWORD nMaxFile; LPTSTR lpstrFileTitle; DWORD nMaxFileTitle; LPCTSTR lpstrInitialDir; LPCTSTR lpstrTitle; DWORD Flags; WORD nFileOffset; WORD nFileExtension; LPCTSTR lpstrDefExt; DWORD lCustData; LPOFNHOOKPROC lpfnHook; LPCTSTR lpTemplateName; #if (_WIN32_WINNT >= 0x0500) struct IMoniker **rgpMonikers; DWORD cMonikers; DWORD FlagsEx; #endif // (_WIN32_WINNT >= 0x0500) } OPENFILENAME; The new element of this structure that you will be primarily interested in is FlagsEx. It can be set to the following value: <<<< OFN_EX_NOPLACESBAR If this flag is set, the places bar is not displayed. If this flag is not set, Explorer-style dialog boxes include a places bar containing icons for commonly-used folders, such as Favorites and Desktop. >>>> Regards Andrei Zenkovitch Dundas Software ================== The original message was: Does anybody know what to do to use the new Open File Dialog
that is now standard on Windows 2000 ? My app works fin on
W2000 but the Open File Dialog looks exactly the same way as
under Windows 95/98/NT.Thanks
-
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks
Have a look at www.microsoft.com/msj The "Microsoft Systems Journal" dated Aug 1999. Aticle "The logo and beyond..." Regards Jerry ================== The original message was: Does anybody know what to do to use the new Open File Dialog
that is now standard on Windows 2000 ? My app works fin on
W2000 but the Open File Dialog looks exactly the same way as
under Windows 95/98/NT.Thanks
-
Does anybody know what to do to use the new Open File Dialog that is now standard on Windows 2000 ? My app works fin on W2000 but the Open File Dialog looks exactly the same way as under Windows 95/98/NT. Thanks
Hi Michael, have a look at http://www.codeproject.com/dialog/win2000fd.asp Best regards, Thomas