草庐IT

WindowRegion

全部标签

windows - 平滑圆窗角

你好我使用WindowsAPI调用CreateRoundRgn和SetWindowRgn创建了一个圆边窗口,但是圆角不如使用GDI+绘制的圆角矩形平滑。无论如何,有没有平滑窗口的角落?procedureTPBSDashboardPanel.DefineWindowRegion;varWindowRegion:HRGN;beginifAssigned(Parent)thenbeginWindowRegion:=CreateRoundRectRgn(0,0,Width,Height,20,20);SetWindowRgn(Handle,WindowRegion,True);end;end;