summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-12-11 21:50:48 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-12-11 21:50:48 +0300
commit346d20620a22103175778d0ae96299af9f93c7ea (patch)
tree31ab043988a7c9c7ef62eb896c1a56fee55cf420 /src
parentcca8cfd9395d44b9c0e044b8b7e627e9f8545db9 (diff)
fixes #2647 (StdClist: embedded clist is not accesible)
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/clcutils.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/mir_app/src/clcutils.cpp b/src/mir_app/src/clcutils.cpp
index 9e4ebaaed7..00633f97a7 100644
--- a/src/mir_app/src/clcutils.cpp
+++ b/src/mir_app/src/clcutils.cpp
@@ -77,24 +77,6 @@ int fnHitTest(HWND hwnd, ClcData *dat, int testx, int testy, ClcContact **contac
if (flags)
*flags = 0;
- POINT pt;
- pt.x = testx;
- pt.y = testy;
- ClientToScreen(hwnd, &pt);
-
- HWND hwndParent = hwnd, hwndTemp;
- do {
- hwndTemp = hwndParent;
- hwndParent = (HWND)GetWindowLongPtr(hwndTemp, GWLP_HWNDPARENT);
-
- POINT pt1 = pt;
- ScreenToClient(hwndParent, &pt1);
- HWND h = ChildWindowFromPointEx(hwndParent ? hwndParent : GetDesktopWindow(), pt1, CWP_SKIPINVISIBLE | CWP_SKIPTRANSPARENT);
- if (h != hwndTemp)
- if (!hwndParent || !(GetWindowLongPtr(hwndTemp, GWL_STYLE) & BS_GROUPBOX))
- return -1;
- } while (hwndParent);
-
RECT clRect;
GetClientRect(hwnd, &clRect);
if (testx < 0 || testy < 0 || testy >= clRect.bottom || testx >= clRect.right) {