procedure TForm1.N11DrawItem(Sender: TObject; ACanvas: TCanvas; ARect: TRect;

  Selected: Boolean);

begin

 If (Selected) Then

 begin

 

 

 ACanvas.Font.Color := clWhite  ;

  ACanvas.Brush.Color := clWebDodgerBlue;

      ACanvas.FillRect(ARect);

         DrawText(ACanvas.Handle, PChar('   取消开机启动'), -1, ARect, DT_LEFT Or DT_LEFT Or DT_SINGLELINE Or DT_NOCLIP);

 end

  Else

  begin

  ACanvas.Font.Color := clblack;

 

    ACanvas.Brush.Color := clWebSnow;

    ACanvas.FillRect(ARect);

 

    DrawText(ACanvas.Handle, PChar('   取消开机启动'), -1, ARect, DT_LEFT Or DT_LEFT  Or DT_SINGLELINE Or DT_NOCLIP);

  end;

end;

相关文章:

  • 2021-07-06
  • 2022-12-23
  • 2021-09-04
  • 2021-07-07
  • 2021-12-02
  • 2022-01-16
  • 2022-02-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-04-03
  • 2021-05-18
相关资源
相似解决方案