I really thought I understood clip regions and update regions inval
regions, but this stuff just isn't working.
I'm catching the following events for my window:
For kEventWindowDrawContent, I call BeginUpdate and EndUpdate and in
between I redraw everything by calling DrawControls on the window and then
redrawing my window.
For kEventWindowBoundsChanged, I simply recalc the rectangles for the
scroll bars from the window's size and SetControlBounds. Just to be safe,
I go ahead and call InvalWindowRect on the scroll bar rects at the same
time, which by my understanding should trigger an update call with an
update regions that includes the scroll bars.
When I "grow" the window, the scroll bars don't redraw. And here's the
srtangest thing. If I'm running the debugger and I stop when I'm
recalcing the scroll bars, THEN the scroll bars do redraw. Geez.
Any thoughts on this? Thanks.
Keith Wiley unm.edu
"Yet mark his perfect self-contentment, and hence learn his lesson,
that to be self-contented is to be vile and ignorant, and that to
aspire is better than to be blindly and impotently happy."
-- Edwin A. Abbott, Flatland