Syntax
EnableMessage (INT which, HWND hWnd)
Description
Enables/disables Windows Messages. If a particular event occurs, the messages are sent to the application. Each message is structured as follows:
•Message: IS_UEYE_MESSAGE
•wParam: event (see table)
•lParam: uEye camera handle associated with the message

|
You have to deactivate Windows messages with hWnd == NULL before you free the uEye API library. Otherwise the application may not close properly.
|
Parameter
which: ID of the message to be enabled/disabled
IS_AUTOBRIGHTNESS_FINISHED
|
Automatic brightness control is completed (only if this control was started using the IS_SET_AUTO_BRIGHTNESS_ONCE function).
|
IS_AUTOFOCUS_FINISHED
|
Automatic focus control is finished (XS only)
|
IS_CAMERA_MEMORY
|
In the camera memory mode an image acquisition iteration is finished.
|
IS_CAPTURE_STATUS
|
An error occurred during the data transfer.
|
IS_CONNECTIONSPEED_CHANGED
|
The connection speed of a USB 3 uEye camera changed from USB 2.0 to USB 3.0 or from USB 3.0 to USB 2.0.
|
IS_FIRST_PACKET_RECEIVED
|
The first data packet of the image was transferred to the PC. This is the earliest time for determining if the image exposure is finished.
|
IS_FRAME
|
A new image is available.
|
IS_DEVICE_PLUGGED_IN
|
An already paired GigE uEye camera was reconnected to the network (Requirement: the camera is operated in trusted pairing mode).
|
IS_DEVICE_UNPLUGGED
|
A paired GigE uEye camera was disconnected from the network (Requirement: the camera is operated in trusted pairing mode).
|
IS_DEVICE_REMOVAL
|
A camera was removed.
|
IS_DEVICE_REMOVED
|
An opened camera was disconnected.
|
IS_DEVICE_RECONNECTED
|
An opened and disconnected camera afterwards was reconnected.
|
IS_NEW_DEVICE
|
A new camera was connected.
|
IS_OVERLAY_DATA_LOST
|
Direct3D/OpenGL mode: Because of a re-programming the parameters of the overlay are invalid. The overlay must be draw new.
|
IS_PMC_IMAGE_PARAMS_CHANGED
|
Multicast mode: The master has changed camera parameters which affect the data format like image size or color format. The client must reconfigure the virtual camera.
|
IS_SEQUENCE
|
The sequence is completed.
|
IS_TEMPERATURE_STATUS
|
USB 3 uEye CP Rev. 2 only: The temperature state of the camera has changed.
|
IS_TRIGGER
|
An image which was captured following the arrival of a trigger has been transferred completely.
This is the earliest possible moment for a new capturing process. The image must then be post-processed by the driver and is available after the IS_FRAME message has occurred.
|
IS_WB_FINISHED
|
Automatic white balance control is completed (only if this control was started using the IS_SET_AUTO_WB_ONCE function).
|
|
hWnd
|
Application window for receiving the message.
NULL disables the message designated by the which parameter.
|
Interface
•InitEvent
Related functions
•InitEvent