tests/cefclient/browser/osr_accessibility_node_win.cc
// Helper function to convert a rectangle from client coordinates to screen
// coordinates.
Helper function to convert a rectangle from client coordinates to screen
coordinates.
Helper function to convert a rectangle from client coordinates to screen coordinates .
void ClientToScreen(HWND hwnd, LPRECT lpRect) {
  if (lpRect) {
    POINT ptTL = {lpRect->left, lpRect->top};
    POINT ptBR = {lpRect->right, lpRect->bottom};
    ClientToScreen(hwnd, &ptTL);
    ClientToScreen(hwnd, &ptBR);
    SetRect(lpRect, ptTL.x, ptTL.y, ptBR.x, ptBR.y);
  }
}
void ClientToScreen ( HWND hwnd , LPRECT lpRect ) { if ( lpRect ) { POINT ptTL = { lpRect -> left , lpRect -> top } ; POINT ptBR = { lpRect -> right , lpRect -> bottom } ; ClientToScreen ( hwnd , & ptTL ) ; ClientToScreen ( hwnd , & ptBR ) ; SetRect ( lpRect , ptTL . x , ptTL . y , ptBR . x , ptBR . y ) ; } }
Helper function to convert a rectangle from client coordinates to screen
coordinates.
Helper function to convert a rectangle from client coordinates to screen coordinates .
// Win32 API only provides the call for a point.