Главная страница
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.047 c
1-1102303284
Anonim
2004-12-06 06:21
2004.12.19
Проблемы с WM_DEVICECHANGE...


1-1101919692
ALex17
2004-12-01 19:48
2004.12.19
трей


1-1101910353
Змей
2004-12-01 17:12
2004.12.19
listview


14-1101503777
GEN++
2004-11-27 00:16
2004.12.19
Win98 на ноутбук (установка)


3-1100690038
_mandrake_
2004-11-17 14:13
2004.12.19
sql снифер