GDI
Irregular window's shape, gradient fill
- Demonstration
- Functionality:
- Create one window
- window has the shape of the triangle with additional circles at all vertex
- verticies have a diameter of 15 pixels
- each vertex has a different colour, the colours are: red, green and blue
- interior of the triangle is filled with gradient of all the colours
- created window is a top-most one
- each vertex can be dragged all over the screen
- only one window (with irregular shape) could be created
- initial verticies position:
- red: (100, 100)
- green: (400, 100)
- blue: (300, 300)
- Hints:
- CreatePolygonRgn(), CreateEllipticRgn(), CombineRgn()
- SetWindowRgn()
- RedrawWindow()
- [Msimg32.lib] GradientFill(), TRIVERTEX, GRADIENT_TRIANGLE
- Approximate points:
- irregular shape, window style: 3.5
- gradient: 2.5
- circles colour: 1.0
- verticies moving: 3.0