Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Do I have to understand object-oriented programming to use Delphi?

953


what are Safe Mode and VGA mode?

1758


Why can't we display data in descending order in Delphi?

1629


How to close the CD Tray in code?

1780


How can I manipulate data programatically?

876


How to assign the Delphi global printer object, to the Quick Reports global printer object?

2111


How to Extract Icons ?

1721


How to Keep an application in a minimized state?

2039


Write a program to show the memory leak?

968


How to Change the display mode settings in code?

1874


How to Make text background transparent?

1979


How to Calculate an angle from two points?

1814


How to detect if a given key was pressed during application during startup?

1626


How to Use an animated cursor?

1777


what are the Font problems on NT 4.0?

1436