M
maple_guo
Unregistered / Unconfirmed
GUEST, unregistred user!
1.TTableScope = (tsSynonym, tsSysTable, tsTable, tsView);请问其中的tsSynonym是什么意思?代表什么?
2.请解释一下以下代码中的DC以及GetDC(),ReleaseDC()是做什么的?HELP里面查不到,谢谢!
2.请解释一下以下代码中的DC以及GetDC(),ReleaseDC()是做什么的?HELP里面查不到,谢谢!
代码:
procedure TForm1.Button1Click(Sender: TObject);
const
YPos = 100;
var
DC: HDC;
i: Integer;
Shapes: Array[0..4] of TShape;
begin
FXSpot := 5;
DC := GetDC(Handle);
Shapes[0] := TShape.Create(DC, FXSpot, YPos);
Shapes[1] := TRectangle.Create(DC, FXSpot + 100, YPos);
Shapes[2] := TEllipse.Create(DC, FXSpot + 200, YPos);
for i := 0 to 2 do begin
Shapes[i].Draw;
Shapes[i].Free;
end;
ReleaseDC(Handle, DC);
end;