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 Clear the window in a console application?
How can I change the drive that MediaPlayer uses to play Audio ?
Can I make calls to Delphi code from C or C++?
How to Find the column and row of the cursor in a TRichEdit?
How to Load a locale file into the THTML component ?
What is Typecasting ?
How to Embede a copyright symbol in a string?
How to Return application's exit code?
How to use the InterBase Express (IBX) SQL monitor?
How to Determine if Delphi Running?
Hi is there is any tool to debug Delphi ISAPI dlls in borland 2006 framework. AS i am a new to delphi borland i need a detailed description for debugging the web application in delphi as per my analysis the ISAPI dlls calling the htm files please help me ....
How to Declare a SafeArray in the type library editor?