DelphiWin32核心API参考光盘内容.是学习书籍中的源码,便于学习.

源代码在线查看: strokepathu.pas

软件大小: 1394 K
上传用户: my99ab1
关键词: DelphiWin API 32 核心
下载地址: 免注册下载 普通下载 VIP

相关代码

				unit StrokePathU;
				
				interface
				
				uses
				  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
				
				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
				  {begin a path bracket}
				  BeginPath(Canvas.Handle);
				
				  {draw some cool text}
				  SetBkMode(Canvas.Handle, TRANSPARENT);
				  Canvas.TextOut(10, 10, 'DELPHI ROCKS!');
				
				  {end the path bracket}
				  EndPath(Canvas.Handle);
				
				  {initialize the pen to be used in outlining the path}
				  Canvas.Pen.Color := clRed;
				  Canvas.Pen.Style := psSolid;
				
				  {outline the path}
				  StrokePath(Canvas.Handle);
				end;
				
				end.
							

相关资源