void ClientToScreen(HWND hWnd, LPRECT lpRect) { ASSERT(::IsWindow(hWnd)); ::ClientToScreen(hWnd, (LPPOINT)lpRect); ::ClientToScreen(hWnd, ((LPPOINT)lpRect)+1); if (GetExStyle(hWnd) & WS_EX_LAYOUTRTL) SwapLeftRight(lpRect); }
void SwapLeftRight() { SwapLeftRight(LPRECT(this)); }
void WRectangle::SwapLeftRight() { SwapLeftRight(this); }