Click to See Complete Forum and Search --> : Clippingregion problems?


jeanbaptiste36
July 28th, 2007, 12:09 PM
Hi,

I'm trying to draw to an another applications client area and it goes Ok only in a small region in the upper corner of the window. If it's an area that updates more quickly then it disappears. I tried updating more quickly but it doesn't solve the problem.

The code is on of the form of:

hdc = GetDC(graphHwnd);

RECT rect;

rect.left = 20;
rect.top = 20;
rect.right = 100;
rect.bottom = 30;

DrawText(hdc, "text", 4, &rect, 0);
ReleaseDC(graphHwnd, hdc);

ReleaseDC(graphHwnd, hdc);


I'm not doing this in a Windows procedure but in a timer. The text is only visible for certain coordinates but not for others. The text gets clipped outside of a certain box in the client area.

jeanbaptiste36
July 28th, 2007, 05:13 PM
Problem resolved. RTFM, ARGH....