YSTest: Win32Control.cpp 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

Win32Control.cpp
浏览该文件的文档.
1 /*
2 © 2013-2016 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
29 #include "Helper/YModules.h"
30 #include YFM_Win32_Helper_Win32Control
31 #include YFM_Helper_Environment
32
33 namespace YSLib
34 {
35
36 #if YCL_Win32
37
38 namespace Windows
39 {
40
41 namespace UI
42 {
43
44 bool
45 ControlView::HitChildren(const Point& pt) const
46 {
47 const auto h_wnd(Nonnull(GetNativeHandle())), h_child(
48 ::ChildWindowFromPointEx(h_wnd, {pt.X, pt.Y}, CWP_SKIPINVISIBLE));
49
50 // TODO: Support custom environment.
51 return h_child && h_child != h_wnd && !FetchGUIHost().FindWindow(h_child);
52 }
53
54 } // namespace UI;
55
56 } // namespace Windows;
57
58 #endif
59
60 } // namespace YSLib;
61
platform::Nonnull
_type && Nonnull(_type &&p) ynothrow
断言并返回非空指针。
Definition: Debug.h:411
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::FetchGUIHost
FetchGUIHost
Definition: GUIApplication.h:300
UI
YModules.h
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: YGDIBase.h:278