Export (0) Print
Expand All

OFNOTIFY structure

Contains information about a WM_NOTIFY message sent to an OFNHookProc hook procedure for an Open or Save As dialog box. The lParam parameter of the WM_NOTIFY message is a pointer to an OFNOTIFY structure.

Syntax


typedef struct _OFNOTIFY {
  NMHDR          hdr;
  LPOPENFILENAME lpOFN;
  LPTSTR         pszFile;
} OFNOTIFY, *LPOFNOTIFY;

Members

hdr

Type: NMHDR

The code member of this structure can be one of the following notification messages that identify the message being sent: CDN_FILEOK, CDN_FOLDERCHANGE, CDN_HELP, CDN_INITDONE, CDN_SELCHANGE, CDN_SHAREVIOLATION, CDN_TYPECHANGE.

lpOFN

Type: LPOPENFILENAME

A pointer to the OPENFILENAME structure that was specified when the Open or Save As dialog box was created. For some of the notification messages, this structure contains additional information about the event that caused the notification.

pszFile

Type: LPTSTR

The file name for which a network sharing violation has occurred. This member is valid only with the CDN_SHAREVIOLATION notification message.

Remarks

Not all of the Open and Save As notification messages use the OFNOTIFY structure. The CDN_INCLUDEITEM notification message uses the OFNOTIFYEX structure.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commdlg.h (include Windows.h)

Unicode and ANSI names

OFNOTIFYW (Unicode) and OFNOTIFYA (ANSI)

See also

Reference
CDN_FILEOK
CDN_FOLDERCHANGE
CDN_HELP
CDN_INITDONE
CDN_SELCHANGE
CDN_SHAREVIOLATION
CDN_TYPECHANGE
OFNOTIFYEX
OPENFILENAME
Conceptual
Common Dialog Box Library

 

 

Community Additions

ADD
Show:
© 2014 Microsoft