I am trying to create a filled ellipse with an image of my choice I would like the image to fill the ellipse completely, however, the image appears to tile and leaves a gap between the image and the ellipse region - is this for the hidden titlebar and if so how can I remove it.
h_brush = CreatePatternBrush(pic1.Image)
hRgn = SelectObject(Me.hdc, h_brush)
hRgn = CreateEllipticRgn(30,30, 90, 90)
FillRgn Me.hdc, hRgn, h_brush
SetWindowRgn Me.hWnd, hRgn, 1
Cheers
Rab.
