delphi win32api编程
源代码在线查看: upie.pas
unit UPie;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
procedure FormPaint(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormPaint(Sender: TObject);
begin
{draw a pie shaped wedge}
Canvas.Brush.Color := clRed;
Canvas.Brush.Style := bsDiagCross;
Pie(Canvas.Handle, 10, 10, 110, 110, 10, 60, 60, 10);
end;
end.