Esempio n. 1
0
bool
awl::backends::windows::window::has_focus(
	awl::backends::windows::window::object const &_window
)
{
	return
		awl::backends::windows::get_focus()
		==
		_window.hwnd();
}
Esempio n. 2
0
awl::backends::windows::optional_rect const
awl::backends::windows::window::get_rect(
	awl::backends::windows::window::object const &_object
)
{
	RECT rect;

	return
		::GetWindowRect(
			_object.hwnd(),
			&rect
		)
		== FALSE
		?
			awl::backends::windows::optional_rect()
		:
			awl::backends::windows::optional_rect(
				rect
			)
		;
}