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 |
What is the equivalent in BCB to a Pdox TCursor?
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 ....
What are the ways to close a modal form?
How to Align maximized forms?
How to Use the Application's OnIdle Event?
How to add system menu items to a form ?
How to Convert a TColor value to a HTML Color string ?
Define PRIMARYLANGID(), SUBLANGID(), and MAKELANGID() macros?
How many tables can be connected with joins in oracle at a time?
How to Covert string of (zeros and ones) to binary?
How to Change the font in a hint window ?
How to Create a Lookup field at runtime ?