static void _MoveAllChildren(WM_HWIN hChild, int dx, int dy) { while (hChild) { WM_Obj* pChild = WM_HANDLE2PTR(hChild); WM__MoveWindow(hChild, dx, dy); hChild = pChild->hNext; } }
/********************************************************************* * * WM__MoveTo */ void WM__MoveTo(WM_HWIN hWin, int x, int y) { if (hWin) { WM_Obj* pWin = WM_HANDLE2PTR(hWin); x -= pWin->Rect.x0; y -= pWin->Rect.y0; WM__MoveWindow(hWin, x, y); } }
/********************************************************************* * * WM_MoveWindow */ void WM_MoveWindow(WM_HWIN hWin, int dx, int dy) { WM_LOCK(); { WM__MoveWindow(hWin, dx, dy); } WM_UNLOCK(); }