Partager via


CDM_SETDEFEXT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

Syntax

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

Parameters

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

Return Value

None.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

GetOpenFileName
GetSaveFileName
OPENFILENAME