06-13-2010, 09:26 AM
brianmount Wrote:Dean,
When using this test template, what specific message do you see the client receiving when the button is first pressed? When it is released? When it is pressed a second time?
Basically, because of the support of, and pretty ubiquitous use of, transparency, any redrawing effectively just does a recursive redraw of anything that intersects the affected area. So, in the simplest of scenarios, with a button on a single colored background, you'd get something like a push of the graphics state, a fill of the area with the current color, if it's an alpha based image then an alpha blit of the image, then a pop of the graphics state. If it also has text, then there'd be pushes and pops of the font and text color and the text drawing of course, after the draw of the image.
The release would be the same thing basically, since they really are the same operations.
I may be missing some small housekeeping calls wrt to push/pop of state, but basically that would be it.
Dean Roddey
Explorans limites defectum
Explorans limites defectum