diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-11 21:50:48 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-11 21:50:48 +0300 |
commit | 346d20620a22103175778d0ae96299af9f93c7ea (patch) | |
tree | 31ab043988a7c9c7ef62eb896c1a56fee55cf420 /src/mir_app | |
parent | cca8cfd9395d44b9c0e044b8b7e627e9f8545db9 (diff) |
fixes #2647 (StdClist: embedded clist is not accesible)
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/clcutils.cpp | 18 |
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) {
|