The 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
-
Specifies an NMHDR structure. The code member of the NMHDR 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
-
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
-
Pointer to 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.
Structure Information
| Header | Declared in Commdlg.h, include Windows.h |
|---|
| Minimum operating systems |
Windows 95, Windows NT 4.0 |
|---|
| Unicode | Implemented as
ANSI and Unicode versions. |
|---|
See Also
Common Dialog Box Library,
CDN_FILEOK,
CDN_FOLDERCHANGE,
CDN_HELP,
CDN_INITDONE,
CDN_SELCHANGE,
CDN_SHAREVIOLATION,
CDN_TYPECHANGE,
NMHDR,
OFNOTIFYEX,
OPENFILENAME