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
How to Send a file via DCOM ?
How to Map a DLL into another process ?
How to Determine if Delphi Running?
How to dial out through the modem under Win32?
'General SQL Error : Connection does not exist' in threaded application . what does this indicates?
How to display seconds, minutes, tracks of an AVI ?
Does Kylix support ODBC?
How to display an application associated icons?
How to connect to an InterBase database using the BDE API?
what are Hetergenious joins ?
What is the procedure to connect delphi application to ms access database?
With what commands you can Delete a directory and all the directories with files?
Where to get TUpdateSQLProvider component ?
What are the different ways of defining array sizes?
How to Change the printer setup between pages?