Older Newer
Mon, 20 Jul 2015 10:39:19 . . . . SyneRyder [Updated anonymous contribution to fit the style guide. Thank you anonymous perso]


Changes by last author:

Added:
= 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 ==

<code>

ctl(1): OWNERDRAW(drawitem), pos=(300,50), size=(100, 100)

startSetPixel(1);

setRectFill(10,20,30,40,RGB(255,0,0));

endSetPixel(1);

</code>

== Also see ==

:startSetPixel, setRectGradient, endSetPixel

== Comments ==

:Everyone can add their comments about their experiences with this function here. Tips for using it are welcome, too.