Changeset 180 for branches/highdpi/Packages/CevoComponents/BaseWin.pas
- Timestamp:
- Jun 23, 2019, 11:57:39 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Packages/CevoComponents/BaseWin.pas
r178 r180 165 165 procedure TBufferedDrawDlg.VPaint; 166 166 begin 167 BitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight,167 DpiBitBlt(Canvas.Handle, 0, 0, ClientWidth, ClientHeight, 168 168 Offscreen.Canvas.Handle, 0, 0, SRCCOPY); 169 169 end; … … 278 278 else 279 279 BottomFrame := NarrowFrame; 280 r0 := CreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame,280 r0 := DpiCreateRectRgn(SideFrame, TitleHeight, ClientWidth - SideFrame, 281 281 ClientHeight - BottomFrame); 282 282 for i := 0 to ControlCount - 1 do … … 284 284 begin 285 285 with Controls[i].BoundsRect do 286 r1 := CreateRectRgn(Left, Top, Right, Bottom);286 r1 := DpiCreateRectRgn(Left, Top, Right, Bottom); 287 287 CombineRgn(r0, r0, r1, RGN_DIFF); 288 288 DeleteObject(r1); … … 454 454 end; 455 455 456 BitBlt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame,456 DpiBitBlt(Canvas.Handle, SideFrame, TitleHeight, ClientWidth - 2 * SideFrame, 457 457 InnerBottom - TitleHeight, Offscreen.Canvas.Handle, 0, 0, SRCCOPY); 458 458 end; … … 464 464 if FullCaption then 465 465 exit; 466 r0 := CreateRectRgn(0, 0, ClientWidth, ClientHeight);467 r1 := CreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame);466 r0 := DpiCreateRectRgn(0, 0, ClientWidth, ClientHeight); 467 r1 := DpiCreateRectRgn(0, 0, CaptionLeft, TitleHeight - NarrowFrame); 468 468 CombineRgn(r0, r0, r1, RGN_DIFF); 469 469 // DeleteObject(r1); 470 r1 := CreateRectRgn(ClientWidth - CaptionLeft, 0, ClientWidth,470 r1 := DpiCreateRectRgn(ClientWidth - CaptionLeft, 0, ClientWidth, 471 471 TitleHeight - NarrowFrame); 472 472 CombineRgn(r0, r0, r1, RGN_DIFF); … … 474 474 if WideBottom then 475 475 begin 476 r1 := CreateRectRgn(0, ClientHeight - (WideFrame - NarrowFrame),476 r1 := DpiCreateRectRgn(0, ClientHeight - (WideFrame - NarrowFrame), 477 477 CaptionLeft, ClientHeight); 478 478 CombineRgn(r0, r0, r1, RGN_DIFF); 479 479 // DeleteObject(r1); 480 r1 := CreateRectRgn(ClientWidth - CaptionLeft,480 r1 := DpiCreateRectRgn(ClientWidth - CaptionLeft, 481 481 ClientHeight - (WideFrame - NarrowFrame), ClientWidth, ClientHeight); 482 482 CombineRgn(r0, r0, r1, RGN_DIFF);
Note:
See TracChangeset
for help on using the changeset viewer.