DN_MOUSECLICK
The DN_MOUSECLICK event is sent to the dialog callback function after the user clicks
the mouse on one of the dialog items or outside the dialog.
Param1
Dialog item ID or -1 if the user clicked outside the dialog.
Param2
Return
TRUE - the dialog callback function has handled the message, no further processing by the kernel is needed.
FALSE - continue processing the message by the kernel.
Controls
| Control | Description |
| All |
All dialog elements excluding hidden and disabled |
Remarks
- For the DI_USERCONTROL control the mouse cursor
coordinates are relative to the upper left corner of the control. For all other elements the
coordinates are relative to the upper left corner of the screen.
- The dialog callback function can handle the DOUBLE_CLICK event. For this you should check the
MouseEvent.dwEventFlags==DOUBLE_CLICK flag:
- If the user clicks outside the dialog, then:
- the left mouse button is treated as if
<Esc> was pressed;
- the right mouse button is treated as if
<Enter> was pressed;
- other mouse buttons are ignored (for a multiple button mice).
- If the dialog callback function doesn't handle the message with ID=-1, the
dialog will be closed
Example
See also: