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 Get the size of the desktop?
How to Link an animated cursor to a resource file?
How to Deploy DBClient in a Web Application?
How much does MTS improve connect times?
What is a good BDE Alternative?
How to DetermineDrive Type ?
How to Change the default width/height of the editor?
How to get the coding for : Well-ordered numbers
How to Create a non-VCL console project?
How to Prevent windows task switching ?
How to access more than one table with the QuickRep component?
What to have ready before you call Borland Developer Support?