Редагувати

Поділитися через


CDM_SETDEFEXT message

[Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.]

Sets the default file name extension for an Explorer-style Open or Save As dialog box. The dialog box must have been created with the OFN_EXPLORER flag; otherwise, the message fails.

#define WM_USER                  0x0400
#define CDM_FIRST               (WM_USER + 100)
#define CDM_SETDEFEXT           (CDM_FIRST + 0x0006)

Parameters

wParam

This parameter is not used.

lParam

A pointer to the new file name extension. Must not include the dot (.).

Return value

This message has no return value.

Remarks

The corresponding macro is as follows:

void CommDlg_OpenSave_SetDefExt(hwnd, lparam)

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Commdlg.h (include Windows.h)

See also

Reference

GetOpenFileName

GetSaveFileName

OPENFILENAME

Conceptual

Common Dialog Box Library