Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.025 c
11-1084117025
Рома
2004-05-09 19:37
2004.12.19
PageControl


14-1101463912
MBo
2004-11-26 13:11
2004.12.19
Пятничные задачи. Очередные проблемы Васи Пупкина


1-1102314727
Adis Tadas
2004-12-06 09:32
2004.12.19
как вернуть _Recordset из DLL ?


3-1101128143
Dobriy
2004-11-22 15:55
2004.12.19
Порты сервера firebird и его клиента


1-1102146192
M@D
2004-12-04 10:43
2004.12.19
PostMessage




   Наверх