![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как вывести надпись на рабочий стол? [D7, XP]
Rentner © (2008-02-15 17:21:00)Уважаемые мастера! Подскажите, пожалуйста, Как программно вывести любую строку на рабочий стол?
Rentner (2008-02-15 17:52:00) [1]Благодарю :)
Palladin (2008-02-15 17:44:00) [2]type
TDesktopCanvas = class(TCanvas)
private
DC : hDC;
function GetWidth:Integer;
function GetHeight:Integer;
public
constructor Create;
destructor Destroy; override;
published
property Width: Integer read GetWidth;
property Height: Integer read GetHeight;
end;
function TDesktopCanvas.GetWidth:Integer;
begin
Result:=GetDeviceCaps(Handle,HORZRES);
end;
function TDesktopCanvas.GetHeight:Integer;
begin
Result:=GetDeviceCaps(Handle,VERTRES);
end;
constructor TDesktopCanvas.Create;
begin
inherited Create;
DC := GetDC(0);
Handle := DC;
end;
destructor TDesktopCanvas.Destroy;
begin
Handle := 0;
ReleaseDC(0, DC);
inherited Destroy;
end;
рисуй наздоровье...
Rentner (2008-02-15 17:35:00) [3]Например, дату и время, и чтобы она там все время была
Palladin (2008-02-15 17:32:00) [4]зачем?