Microsoft DirectX 9.0


The MessageDrain property sets or retrieves a window that receives mouse and keyboard messages from the video window.


objVideoWindow.MessageDrain As LONG_PTR


This property takes no parameters.

Return Values

Returns a handle to the window that receives the messages.


An application can set this property in order to receive mouse and keyboard events generated within the video window. The message drain window does not need to be a parent of the video window, so full-screen applications can use this property.

This property is read/write.

See Also