HI
I've created a window with rounded edges using the windows API calls CreateRoundRgn and SetWindowRgn however the rounded corners are not as smooth as say a rounded rectangle drawn with GDI+. Is there anyway to smooth out the window corners?
procedure TPBSDashboardPanel.DefineWindowRegion;
var
WindowRegion: HRGN;
begin
if Assigned(Parent) then
begin
WindowRegion := CreateRoundRectRgn(0, 0, Width, Height, 20, 20);
SetWindowRgn(Handle, WindowRegion, True);
end;
end;