Thanks, Vladimir. :) I'm trying to use a minimal subset of the API (ironically, to avoid winapi bugs) for experimenting with Cairo. It's nice having the boilerplate of features already implemented such as clipped drawing and moving windows relative to their parent instead of relative to the screen.