How to draw in wince

Mathias Tantau
hello,
is there a way to draw to a specified field. First I want to set a rect
where to draw and than I only want to send bytes and they automatically
have to fill my rect row by row.

Somethink like:
SetRectForWrite(x, y, width, height, hWnd);

for(countery = 0; countery != y; countery++){
   for(counterx = 0; counterx != x; counterx++){

   SendColor(array[countery * x + counterx]);
   }
}

Maybe one of you knows a function name or a link?
Thank you,
Mathias Tantau