Jump to content

FDM ERROR

From EDM2
Revision as of 21:58, 20 April 2025 by Martini (talk | contribs) (Created page with "This message is sent whenever the file dialog is going to display an error message window. This allows an application to display its own message, if desired, instead of messages provided by the system. ==Syntax== <PRE> param1 USHORT usErrorId; Error message ID.: param2 ULONG ulReserved; Reserved value, should be 0.: </PRE> ==Parameters== ;usErrorId (USHORT) - Input : Error message ID. : This is the ID of the message that is displayed by the file dial...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent whenever the file dialog is going to display an error message window. This allows an application to display its own message, if desired, instead of messages provided by the system.

Syntax

param1
USHORT usErrorId;   /* Error message ID. */

param2
ULONG ulReserved;    /* Reserved value, should be 0. */

Parameters

usErrorId (USHORT) - Input
Error message ID.
This is the ID of the message that is displayed by the file dialog if the default file dialog procedure processes the message.
ulReserved (ULONG) - Input
Reserved value, should be 0.

Returns

usUserReply (USHORT) - returns
User's reply.
0: The file dialog presents the error message for this ID.
MBID_OK: The file dialog processes the reply as if the OK push button was pressed in its message window.
MBID_CANCEL: The file dialog processes the reply as if the Cancel push button was pressed in its message window.
MBID_RETRY: The file dialog processes the reply as if the Retry push button was pressed in its message window.

Remarks

The application uses this message to provide application-specific error messages in response to file dialog errors that are detected during file dialog processing. The application can choose whether to allow the dialog to present its message or whether to provide its own message and return the response from that message window to the dialog for processing.

Default Processing

The WinDefDlgProc function does not expect to receive this message and takes no action on it other than to return NULL.