How to draw directly on the Windows Desktop?
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 |
How to Determine if Delphi Running?
How to Connect via ODBC using Delphi or C++ Builder ?
How to Send a file via DCOM ?
How to Use escape codes with the format() function ?
Can I use the ODBC drivers that I got with ?
Can you use the Naming Service with the version of VisiBroker that comes with Delphi 5 Enterprise?
How to create a power function?
How to Load a locale file into the THTML component ?
Explain the methods findfirst, findnext and findclose?
'Name Conflicting' . what does this error mean?
How to Get the filename and path of a local table?
How is the memory used within an object in delphi?