Home
last modified time | relevance | path

Searched refs:pRect (Results 1 – 25 of 64) sorted by relevance

123

/reactos/win32ss/gdi/eng/
H A Dpaint.c35 BOOL APIENTRY FillSolid(SURFOBJ *pso, PRECTL pRect, ULONG iColor) in FillSolid() argument
41 ASSERT(pRect); in FillSolid()
42 LineWidth = pRect->right - pRect->left; in FillSolid()
43 DPRINT(" LineWidth: %lu, top: %ld, bottom: %ld\n", LineWidth, pRect->top, pRect->bottom); in FillSolid()
44 for (y = pRect->top; y < pRect->bottom; y++) in FillSolid()
47 pso, pRect->left, pRect->right, y, iColor); in FillSolid()
H A Dclip.c176 const RECTL* pRect, in IntEngUpdateClipRegion() argument
187 RtlCopyMemory(NewRects, pRect, count * sizeof(RECTL)); in IntEngUpdateClipRegion()
/reactos/dll/win32/iernonce/
H A Ddialog.cpp42 _Inout_ PRECT pRect) in CalcTextRect() argument
45 ::GetClientRect(m_hListBox, pRect); in CalcTextRect()
47 pRect->bottom = pRect->top; in CalcTextRect()
48 pRect->left += ITEM_LEFTPADDING; in CalcTextRect()
51 DrawTextW(hdc, lpText, -1, pRect, DT_CALCRECT | DT_WORDBREAK); in CalcTextRect()
55 pRect->bottom -= pRect->top; in CalcTextRect()
56 pRect->bottom += ITEM_VPADDING * 2; in CalcTextRect()
57 pRect->top = 0; in CalcTextRect()
58 pRect->right -= pRect->left; in CalcTextRect()
59 pRect->left = 0; in CalcTextRect()
H A Ddialog.h39 void CalcTextRect(_In_ LPCWSTR lpText, _Inout_ RECT *pRect);
/reactos/dll/win32/uxtheme/
H A Ddraw.c181 POINT size = {pRect->right-pRect->left, pRect->bottom-pRect->top}; in UXTHEME_SelectImage()
339 dstSize.x = pRect->right-pRect->left; in UXTHEME_DrawImageGlyph()
340 dstSize.y = pRect->bottom-pRect->top; in UXTHEME_DrawImageGlyph()
349 rcDst = *pRect; in UXTHEME_DrawImageGlyph()
536 rcDst = *pRect; in UXTHEME_DrawImageBackground()
563 *pRect = rcDst; in UXTHEME_DrawImageBackground()
729 rt = *pRect; in UXTHEME_DrawBorderBackground()
771 rt = *pRect; in DrawThemeBackgroundEx()
1505 RECT rt = *pRect; in DrawThemeText()
1668 cMaxRgnRects = 4* (pRect->bottom-pRect->top); in UXTHEME_RegionFromDibBits()
[all …]
H A Dproperty.c181 int iPropId, RECT *pRect) in GetThemeRect() argument
192 return MSSTYLES_GetPropertyRect(tp, pRect); in GetThemeRect()
H A Dmsstyles.c1162 HRESULT MSSTYLES_GetPropertyRect(PTHEME_PROPERTY tp, RECT *pRect) in MSSTYLES_GetPropertyRect() argument
1167 MSSTYLES_GetNextInteger(lpCur, lpEnd, &lpCur, &pRect->left); in MSSTYLES_GetPropertyRect()
1168 MSSTYLES_GetNextInteger(lpCur, lpEnd, &lpCur, &pRect->top); in MSSTYLES_GetPropertyRect()
1169 MSSTYLES_GetNextInteger(lpCur, lpEnd, &lpCur, &pRect->right); in MSSTYLES_GetPropertyRect()
1170 if(!MSSTYLES_GetNextInteger(lpCur, lpEnd, &lpCur, &pRect->bottom)) { in MSSTYLES_GetPropertyRect()
H A Duxthemep.h113 HRESULT UXTHEME_LoadImage(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, BOO…
153 HRESULT MSSTYLES_GetPropertyRect(PTHEME_PROPERTY tp, RECT *pRect);
/reactos/base/shell/explorer/
H A Dtraywnd.cpp1100 pt.x = pRect->left + ((pRect->right - pRect->left) / 2); in GetMonitorFromRect()
1101 pt.y = pRect->top + ((pRect->bottom - pRect->top) / 2); in GetMonitorFromRect()
1184 pRect->right = pRect->left + pTraySize->cx; in MakeTrayRectWithSize()
1188 pRect->bottom = pRect->top + pTraySize->cy; in MakeTrayRectWithSize()
1192 pRect->left = pRect->right - pTraySize->cx; in MakeTrayRectWithSize()
1197 pRect->top = pRect->bottom - pTraySize->cy; in MakeTrayRectWithSize()
1239 szWnd.cx = pRect->right - pRect->left; in CalculateValidSize()
1240 szWnd.cy = pRect->bottom - pRect->top; in CalculateValidSize()
1396 pt.x = pRect->left + ((pRect->right - pRect->left) / 2); in GetDraggingRectFromRect()
1397 pt.y = pRect->top + ((pRect->bottom - pRect->top) / 2); in GetDraggingRectFromRect()
[all …]
/reactos/dll/cpl/sysdm/
H A Denvironment.c834 if (pRect->right - pRect->left < DlgData->cxMin) in EditVariableDlgProc()
835 pRect->left = pRect->right - DlgData->cxMin; in EditVariableDlgProc()
840 if (pRect->right - pRect->left < DlgData->cxMin) in EditVariableDlgProc()
841 pRect->right = pRect->left + DlgData->cxMin; in EditVariableDlgProc()
846 if (pRect->bottom - pRect->top < DlgData->cyMin) in EditVariableDlgProc()
847 pRect->top = pRect->bottom - DlgData->cyMin; in EditVariableDlgProc()
852 if (pRect->bottom - pRect->top < DlgData->cyMin) in EditVariableDlgProc()
853 pRect->bottom = pRect->top + DlgData->cyMin; in EditVariableDlgProc()
1871 if (pRect->right - pRect->left < DlgData->cxMin) in EnvironmentDlgProc()
1872 pRect->left = pRect->right - DlgData->cxMin; in EnvironmentDlgProc()
[all …]
/reactos/win32ss/user/ntuser/
H A Dmonitor.c310 IntGetMonitorsFromRect(OPTIONAL IN LPCRECTL pRect, in IntGetMonitorsFromRect() argument
335 if (pRect == NULL) in IntGetMonitorsFromRect()
349 cx = min(abs(MonitorRect.left - pRect->right), in IntGetMonitorsFromRect()
350 abs(pRect->left - MonitorRect.right)); in IntGetMonitorsFromRect()
351 cy = min(abs(MonitorRect.top - pRect->bottom), in IntGetMonitorsFromRect()
352 abs(pRect->top - MonitorRect.bottom)); in IntGetMonitorsFromRect()
406 PRECTL pRect, in UserMonitorFromRect() argument
554 RECTL rc, *pRect; in NtUserEnumDisplayMonitors() local
616 pRect = NULL; in NtUserEnumDisplayMonitors()
618 pRect = &rc; in NtUserEnumDisplayMonitors()
[all …]
H A Dpainting.c1863 co_UserGetUpdateRect(PWND Window, PRECT pRect, BOOL bErase) in co_UserGetUpdateRect() argument
1880 pRect->left = pRect->top = pRect->right = pRect->bottom = 0; in co_UserGetUpdateRect()
1888 *pRect = Window->rcClient; in co_UserGetUpdateRect()
1893 RegionType = IntGdiGetRgnBox(Window->hrgnUpdate, pRect); in co_UserGetUpdateRect()
1896 RECTL_bIntersectRect(pRect, pRect, &Window->rcClient); in co_UserGetUpdateRect()
1899 if (IntIntersectWithParents(Window, pRect)) in co_UserGetUpdateRect()
1903 RECTL_vOffsetRect(pRect, in co_UserGetUpdateRect()
1914 GreDPtoLP( hdc, (LPPOINT)pRect, 2 ); in co_UserGetUpdateRect()
1921 pRect->left = pRect->top = pRect->right = pRect->bottom = 0; in co_UserGetUpdateRect()
/reactos/win32ss/gdi/gdi32/objects/
H A Dregion.c23 SortRects(PRECT pRect, INT nCount) in SortRects() argument
41 if ( pRect[a].top != pRect[b].top ) break; in SortRects()
42 if ( pRect[a].left > pRect[b].left ) in SortRects()
44 sRect = pRect[a]; in SortRects()
45 pRect[a] = pRect[b]; in SortRects()
46 pRect[b] = sRect; in SortRects()
109 PRECT pRect = (PRECT)&pRgnData->Buffer; in MirrorRgnByWidth() local
112 SaveL = pRect[i].left; in MirrorRgnByWidth()
113 pRect[i].left = Width - pRect[i].right; in MirrorRgnByWidth()
114 pRect[i].right = Width - SaveL; in MirrorRgnByWidth()
[all …]
/reactos/base/applications/notepad/
H A Dprinting.c124 DrawHeaderOrFooter(HDC hDC, LPRECT pRect, LPCTSTR pszFormat, INT nPageNo, const SYSTEMTIME *pstNow) in DrawHeaderOrFooter() argument
134 Rectangle(hDC, pRect->left, pRect->top, pRect->right, pRect->bottom); in DrawHeaderOrFooter()
138 InflateRect(pRect, -X_POINTS_TO_PIXELS(hDC, 3), 0); /* Shrink 3pt */ in DrawHeaderOrFooter()
161 DrawText(hDC, szText, -1, pRect, uAlign | uFlags); in DrawHeaderOrFooter()
167 DrawText(hDC, szText, -1, pRect, uAlign | uFlags); in DrawHeaderOrFooter()
173 DrawText(hDC, szText, -1, pRect, uAlign | uFlags); in DrawHeaderOrFooter()
208 DrawText(hDC, szText, -1, pRect, uAlign | uFlags); in DrawHeaderOrFooter()
/reactos/base/applications/rapps/
H A Dgui.cpp479 LPRECT pRect = (LPRECT)lParam; in ProcessWindowMessage() local
481 if (pRect->right - pRect->left < 565) in ProcessWindowMessage()
482 pRect->right = pRect->left + 565; in ProcessWindowMessage()
484 if (pRect->bottom - pRect->top < 300) in ProcessWindowMessage()
485 pRect->bottom = pRect->top + 300; in ProcessWindowMessage()
/reactos/sdk/include/dxsdk/
H A Dddstream.idl64 [in] const RECT *pRect,
83 [out] RECT * pRect);
86 [in] const RECT * pRect);
/reactos/modules/rosapps/applications/explorer-old/utility/
H A Dwindow.cpp891 void DrawGrayText(HDC hdc, LPRECT pRect, LPCTSTR title, int dt_flags) in DrawGrayText() argument
897 RECT shadowRect = {pRect->left+1, pRect->top+1, pRect->right+1, pRect->bottom+1}; in DrawGrayText()
901 DrawText(hdc, title, -1, pRect, dt_flags); in DrawGrayText()
903 int old_r = pRect->right; in DrawGrayText()
904 int old_b = pRect->bottom; in DrawGrayText()
906 DrawText(hdc, title, -1, pRect, dt_flags|DT_CALCRECT); in DrawGrayText()
908 int x = pRect->left + (old_r-pRect->right)/2; in DrawGrayText()
909 int y = pRect->top + (old_b-pRect->bottom)/2; in DrawGrayText()
910 int w = pRect->right-pRect->left; in DrawGrayText()
911 int h = pRect->bottom-pRect->top; in DrawGrayText()
/reactos/dll/directx/ddraw/thunks/
H A Dsurface_thunk.c41 Thunk_DDrawSurface3_AddOverlayDirtyRect(LPDIRECTDRAWSURFACE3 iface, LPRECT pRect) in Thunk_DDrawSurface3_AddOverlayDirtyRect() argument
45 return Main_DDrawSurface_AddOverlayDirtyRect((LPDIRECTDRAWSURFACE7) iface, pRect); in Thunk_DDrawSurface3_AddOverlayDirtyRect()
304 Thunk_DDrawSurface3_Lock(LPDIRECTDRAWSURFACE3 iface, LPRECT pRect, in Thunk_DDrawSurface3_Lock() argument
321 …retValue = Main_DDrawSurface_Lock ( (LPDIRECTDRAWSURFACE7) iface, pRect, &pDDSD2, dwFlags, events); in Thunk_DDrawSurface3_Lock()
327 retValue = Main_DDrawSurface_Lock ( (LPDIRECTDRAWSURFACE7) iface, pRect, NULL, dwFlags, events); in Thunk_DDrawSurface3_Lock()
394 Thunk_DDrawSurface3_Unlock(LPVOID iface, LPVOID pRect) in Thunk_DDrawSurface3_Unlock() argument
/reactos/sdk/include/reactos/ui/
H A Drosctrls.h763 VOID AdjustRect(IN BOOL bTextToWindow, IN OUT RECT * pRect) in AdjustRect() argument
765 SendMessageW(TTM_ADJUSTRECT, bTextToWindow, reinterpret_cast<LPARAM>(pRect)); in AdjustRect()
777 VOID GetMargin(OUT RECT * pRect) in GetMargin() argument
779 SendMessageW(TTM_GETMARGIN, 0, reinterpret_cast<LPARAM>(pRect)); in GetMargin()
782 VOID SetMargin(IN RECT * pRect) in SetMargin() argument
784 SendMessageW(TTM_SETMARGIN, 0, reinterpret_cast<LPARAM>(pRect)); in SetMargin()
/reactos/base/applications/mplay32/
H A Dmplay32.c1288 LPRECT pRect = (LPRECT)lParam; in MainWndProc() local
1292 if (pRect->right - pRect->left < MAIN_WINDOW_MIN_WIDTH) in MainWndProc()
1293 pRect->right = pRect->left + MAIN_WINDOW_MIN_WIDTH; in MainWndProc()
1295 if (pRect->bottom - pRect->top != MAIN_WINDOW_HEIGHT) in MainWndProc()
1296 pRect->bottom = pRect->top + MAIN_WINDOW_HEIGHT; in MainWndProc()
/reactos/win32ss/gdi/ntgdi/
H A Dregion.c623 RECTL *pRect, *pRectEnd, *pExtents; in REGION_SetExtents() local
637 pRect = pReg->Buffer; in REGION_SetExtents()
645 pExtents->left = pRect->left; in REGION_SetExtents()
646 pExtents->top = pRect->top; in REGION_SetExtents()
650 while (pRect <= pRectEnd) in REGION_SetExtents()
656 pRect++; in REGION_SetExtents()
2548 PRECTL pRect) in REGION_GetRgnBox() argument
2554 *pRect = Rgn->rdh.rcBound; in REGION_GetRgnBox()
2566 PRECTL pRect) in IntGdiGetRgnBox() argument
3924 PRECTL pRect) in NtGdiGetRgnBox() argument
[all …]
H A Dmetafile.c173 IN OUT PRECTL pRect) in NtGdiConvertMetafileRect() argument
/reactos/sdk/lib/cicero/
H A Dcicuif.cpp2575 pRect->left = Point.x; in GetTipWindowRect()
2576 pRect->right = pRect->left + toolTipSize.cx; in GetTipWindowRect()
2578 pRect->bottom = pRect->top + toolTipSize.cy; in GetTipWindowRect()
2580 if (rcMonitor.right < pRect->right) in GetTipWindowRect()
2583 pRect->right = rcMonitor.right; in GetTipWindowRect()
2585 if (pRect->left < rcMonitor.left) in GetTipWindowRect()
2587 pRect->left = rcMonitor.left; in GetTipWindowRect()
2590 if (rcMonitor.bottom < pRect->bottom) in GetTipWindowRect()
2593 pRect->bottom = rcMonitor.bottom; in GetTipWindowRect()
2595 if (pRect->top < rcMonitor.top) in GetTipWindowRect()
[all …]
/reactos/dll/win32/comctl32/
H A Dsyslink.c593 static VOID SYSLINK_Render (const SYSLINK_INFO *infoPtr, HDC hdc, PRECT pRect) in SYSLINK_Render() argument
604 rc = *pRect; in SYSLINK_Render()
764 pRect->right = pRect->left + szDoc.cx; in SYSLINK_Render()
765 pRect->bottom = pRect->top + szDoc.cy; in SYSLINK_Render()
/reactos/base/setup/reactos/
H A Dtreelist.c2782 pRect->bottom = pData->iRowHeight + pRect->top; in TreeListGetItemRect()
2807 if(pRect->left > pRect->right) in TreeListGetItemRect()
2808 pRect->left = pRect->right; in TreeListGetItemRect()
2812 if(pRect->left > pRect->right) in TreeListGetItemRect()
2813 pRect->left = pRect->right; in TreeListGetItemRect()
2833 pRect->left++; in TreeListGetItemRect()
2840 if(pRect->left > pRect->right) { in TreeListGetItemRect()
2841 pRect->left = pRect->right; in TreeListGetItemRect()
12748 if(!pRect) in TreeListDraw()
12749 pRect = &sRect; in TreeListDraw()
[all …]

123