欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

WinAPI: DrawFocusRect - 绘制焦点矩形

程序员文章站 2022-03-31 14:51:38
...
//声明:
DrawFocusRect(
  hDC: HDC;         {设备环境句柄}
  const lprc: TRect {矩形结构}
): BOOL;

 
 
 
 
 

 

 

  

//举例:
procedure TForm1.FormPaint(Sender: TObject);
var
  MyRect: TRect;
begin
  MyRect := Rect(20,20, 180,100);
  DrawFocusRect(Canvas.Handle, MyRect);
end;

 
 
 
 
 

 

 

  

//效果图:
WinAPI: DrawFocusRect - 绘制焦点矩形

转载于:https://my.oschina.net/hermer/blog/320969