Nana - a C++ framework project  

The Programmer's Guide 
nana::gui::API::capture_window

Description

Enables or disables the window to grab the mouse input.

Prototype

nana::gui::window capture_window(nana::gui::window wd, bool enable);

Parameters

wd: A handle to the window which enables or disables the grab of mouse input.
enable: indicates whether to enable or disable the capture of window. If the parameter is true, the window captures the mouse input. If parameter is false, the window stops capturing the mouse input.

Return Value

This function returns the previous captured window. If there is not a captured window, it returns 0.

Remarks

None.

See also

capture_ignore_children.


Move to The Nana Programmer's Guide Application Programming Interface Overviews