How to draw directly on the Windows Desktop?
Answer Posted / srinivas
Through some API functions like
To draw a text
Handle := GetDesktopWindow;
Dc := GetWindowDC(Handle) ;
ACanvas := TCanvas.Create;
try
ACanvas.Handle := DC;
BeginPath(ACanvas.Handle) ;
ACanvas.Font.Color := clRed;
ACanvas.Font.Name := 'Tahoma';
ACanvas.Font.Size := 30;
SetBkMode(ACanvas.Handle, TRANSPARENT) ;
EndPath(ACanvas.Handle) ;
ACanvas.TextOut(0, 0, TextToDraw) ;
finally
ReleaseDC(Handle, ACanvas.Handle) ;
ACanvas.Free;
end;
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is the diff between IT Company & other companies?.
How can I manipulate data programatically?
How to detect if a given key was pressed during application during startup?
How to change an ISAPI DLL project to a CGI project, or vice-versa?
How to Get current record from a TDBGrid ?
How to get UpdateMode to work for TQuery on a SQL Server 7.0 table?
How to Add a document to the Windows 95 Start Button's documents ?
How to Use Multiple Servers?
How to detect if a non-menu key has been pressed?
How to Set Up a C++ Builder or Delphi Form to View InterBase Data?
How to Launch default browser on a URL?
What are the different Control Panel Applets?
How to Modify application server SQL from the client?
How to dial out through the modem under Win32?
what is a CopyCursor ?