Hi I have a class derived from CStatic. And here OnPaint method override the. And let there by a small computational examples to draw lines. Now I've noticed that the lines Control hinausgezeichnet be the above. This is by coordinates quite ok but this area I will not even show. I knew already a solution ... CRect clientRect; GetClientRect (clientRect) then check which are distinguished from the Linen And to. But there is not there a simpler solution?