if (hDC != NULL)
{
PDC dc;
- HRGN dcVisRgn;
INT regionType;
/* get visible region bounding rect */
/* FIXME: setlasterror? */
return -1;
}
- dcVisRgn = dc->prgnVis->BaseObject.hHmgr;
+ regionType = REGION_GetRgnBox(dc->prgnVis, &dcRect);
DC_UnlockDc(dc);
- regionType = NtGdiGetRgnBox(dcVisRgn, &dcRect);
if (regionType == 0)
{
DPRINT("NtGdiGetRgnBox() failed!\n");
IN HWND hWnd,
IN DWORD dwFlags)
{
- PWINDOW_OBJECT Window;
+ PWND Window;
HMONITOR hMonitor = NULL;
RECTL Rect;
DECLARE_RETURN(HMONITOR);
RETURN(hMonitor);
}
- if (!Window->Wnd)
- RETURN(hMonitor);
-
- Rect.left = Rect.right = Window->Wnd->rcWindow.left;
- Rect.top = Rect.bottom = Window->Wnd->rcWindow.bottom;
+ Rect.left = Rect.right = Window->rcWindow.left;
+ Rect.top = Rect.bottom = Window->rcWindow.bottom;
IntGetMonitorsFromRect(&Rect, &hMonitor, NULL, 1, dwFlags);