Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.12.19;
Скачать: CL | DM;

Вниз

получить координаты иконок на рабочем столе.   Найти похожие ветки 

 
SergeyDon   (2004-12-01 17:54) [0]

...
uses
 ShellApi, Windows, CommCtrl, Classes;

var
  hIcos:THandle;
  icoCount,I:integer;
  XY:TPoint;
...
function GetDesktopListViewHandle: THandle;
var
 S: string;
begin
 SetLength(S, 40);
 Result := FindWindow("ProgMan", nil);
 Result := GetWindow(Result, GW_CHILD);
 Result := GetWindow(Result, GW_CHILD);
 GetClassName(Result, PChar(S), 39);
 if PChar(S) <> "SysListView32" then
   Result := 0;
end;
...
begin
hIcos:=GetDesktopListViewHandle;
icoCount:=ListView_GetItemCount(hIcos);
...
for i:=0 to icoCount-1 do
 begin
  ListView_GetItemPosition(hIcos,i,XY); //тут ошибка память неможет быть write!!!
...
 end;

все перепробывал нехочет записывать текущие координаты иконок рабочего стола.
изменение координат все ОК!
ListView_SetItemPosition(hIcos,i,Random(1024) ,Random(768));


 
ответ тут   (2004-12-02 10:34) [1]

http://www.delphimaster.ru/cgi-bin/faq.pl?look=1&id=1013434997&n=15



Страницы: 1 вся ветка

Текущий архив: 2004.12.19;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.028 c
6-1097084387
Stas_on
2004-10-06 21:39
2004.12.19
Как узнать IP компа в сетке из 12+1 компов?


3-1100953359
Iova
2004-11-20 15:22
2004.12.19
rdb$...


1-1101985536
Zif
2004-12-02 14:05
2004.12.19
Удобные сворачивающиеся Begin...end в delphi 8


3-1100686021
room
2004-11-17 13:07
2004.12.19
непонятная ошибка клиента ms sql server


14-1101696577
Думкин
2004-11-29 05:49
2004.12.19
С днем рождения! 29 ноября