How to get a new Open dialog with a new Outlook style column in MFC applications

zhaozj2021-02-16  87

How to get a new Open dialog with a new Outlook style column in MFC applications

Windows 2000 new Open dialog is implemented with a new version of Commdlg.dll. Displaying its function is GetopenFileName, which is the same as used in Windows 9x and Windows NT? However, getopenFileName now uses a new version of OpenFileName, which is a structure that passes information between your applications and dialogs.

Typedef struct tagofn {

DWORD LSTRUCTSIZE;

...

#if (_WIN32_WINNT> = 0x0500)

Void * pvreserved;

DWORD DWRESERVED;

DWORD flagsex;

#ENDIF / / (_WIN32_WINNT> = 0x0500)

OpenFileName, * lpopenfilename;

Under Windows 2000, OpenFileName has three new members. The first two are reserved, the third logo domain, Flagsex, has a new OFN_EX_NOPLACESBAR section, which blocks the Places column. You can refer to MSDN to get updated information.

转载请注明原文地址:https://www.9cbs.com/read-13779.html

New Post(0)