【笨嘴拙舌WINDOWS】实践检验之GDI缩放时间:2023-03-09 04:31:40 SetMapmode(dc,MM_Text); //先继承MM_TEXT的属性 SetMapMode(dc,MM_ANISOTROPIC); SetWindowExtEx(dc,rect.Right,rect.Bottom,nil); SetViewportExtex(dc,rect.Right * trckbr1.Position ,rect.Bottom * trckbr1.Position ,nil);