Searched refs:yNew (Results 1 – 1 of 1) sorted by relevance
2351 int xNew, yNew; in CenterWindow() local2388 yNew = rParent.top + ((hParent - hChild) / 2); in CenterWindow()2389 if (yNew < rScreen.top) in CenterWindow()2390 yNew = rScreen.top; in CenterWindow()2391 else if ((yNew + hChild) > rScreen.bottom) in CenterWindow()2392 yNew = rScreen.bottom - hChild; in CenterWindow()2394 return SetWindowPos(hwndChild, NULL, xNew, yNew, 0, 0, in CenterWindow()