本文整理自网络,侵删。
获取窗口句柄
function TForm1.GetDesktopHand: THandle;
begin
Result := FindWindow('progman', nil);
Result := GetWindow(Result, GW_Child);
Result := GetWindow(Result, GW_Child);
end;
移动第六个图标
Hand := GetDesktopHand;
SendMessage(Hand, LVM_SetItemPosition,5,MakeLparam(100,100));
相关阅读 >>
Delphi datetimepicker 宽度如何与Delphi自带style同步
Delphi 时间与相关类型(3): tfiletime、tsystemtime 及 dos 时间
更多相关阅读请进入《Delphi》频道 >>