W
wlmmlw
Unregistered / Unconfirmed
GUEST, unregistred user!
ClipRect不起作用(大富翁论坛,一个没有高手的地方) 好心的人那,您快来瞧瞧吧!!! Help me please!!!!能不能帮我测试一下???卷起千堆雪tyn 跑掉罗!! (50分)<br /> procedure drawit;
begin
canvas.brush.color := clbtnface;
DrawText(.....);
end;
var
rgn : HRGN; I : integer; ARect: TRect;
begin
ARect := Rect(100,100,200,200);
rgn := CreateRectRgn(ARect.left,ARect.Top,ARect.right,ARect.Bottom);
selectClipRgn(Canvas.handle,Rgn);
for I := 1 to 10 do begin
drawit;
end;
selectClipRgn(Canvas.handle,0)
DeleteObject(rng);
end;
//ClipRect 为什么不起作用
begin
canvas.brush.color := clbtnface;
DrawText(.....);
end;
var
rgn : HRGN; I : integer; ARect: TRect;
begin
ARect := Rect(100,100,200,200);
rgn := CreateRectRgn(ARect.left,ARect.Top,ARect.right,ARect.Bottom);
selectClipRgn(Canvas.handle,Rgn);
for I := 1 to 10 do begin
drawit;
end;
selectClipRgn(Canvas.handle,0)
DeleteObject(rng);
end;
//ClipRect 为什么不起作用