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.

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.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

GetOpenFileName, GetSaveFileName, OPENFILENAME

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.