Antonio Linares wrote:Dear Silvio,
Must the rectangle be painted above the control as per your sample ?
Where are you calling your code from ?
yes the rectangle must be painted over the control
in the image example I use a btnbmp and it run on only on btnbmp
for the test I added the code above