CDM_SETDEFEXT

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

At a Glance

Header file: Commdlg.h
Windows CE versions: 1.0 and later

Syntax

CDM_SETDEFEXT wParam = 0; lParam = (LPARAM) (LPSTR) pszext;

Parameters

hdlg

Handle to the common dialog box window to receive the message.

pszext

Pointer to the null-terminated string that contains the new file name extension. Must not include a period (.).

Return Values

None.

See Also

GetOpenFileName, GetSaveFileName, OPENFILENAME