DN_CLOSE

Far Manager

DN_CLOSE

The DN_CLOSE event is sent to the dialog callback function as a notification before the dialog is closed - the user wants to close the dialog.

Param1

    The ID of the dialog item that had the keyboard focus when Ctrl+Enter was pressed or that has the DefaultButton field set to 1.
  • ID of the dialog item that had the keyboard focus when Ctrl+Enter was pressed or ID of the dialog item that has the DefaultButton field set to 1.
  • -2 - if KEY_BREAK was pressed (Ctrl-Pause or Ctrl-ScrollLock)
  • -1 - KEY_ESC or KEY_F10

Param2

0

Return

TRUE - to allow closing the dialog
FALSE - to continue working with the dialog.

Remarks

  1. The DN_CLOSE event is received immediately after the DM_CLOSE message is sent.

Example

See also: