setRectFill
Syntax
int setRectFill(int left, int top, int right, int bottom, UINT color)
Arguments
- left
- The left co-ordinate of the rectangle to fill in the Ownerdraw control
- top
- The top co-ordinate of the rectangle to fill in the Ownerdraw control
- right
- The right co-ordinate of the rectangle to fill in the Ownerdraw control
- bottom
- The bottom co-ordinate of the rectangle to fill in the Ownerdraw control
- color
- An RGB value of the color you want to fill the defined rectangle with
Return
- to be completed
Description
setRectFill fills a rectangular section of an OWNERDRAW control with a single color.
Example
ctl(1): OWNERDRAW(drawitem), Pos=(300, 50), Size=(100, 100)
startSetPixel(1);
setRectFill(10, 20, 30, 40, RGB(255, 0, 0));
endSetPixel(1);
See Also
startSetPixel, setRectGradient, endSetPixel
Comments
- Everyone can add their comments about their experiences with this function here. Tips for using it are welcome, too.