本文整理自网络,侵删。
获取窗口句柄
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 for android 调用java类库
Delphi int64:是Delphi中最大的整数,64位有符号整数
Delphi tmemo控件滚动条scrollbar末尾插入字符串一点都会闪烁的轻松实现
更多相关阅读请进入《Delphi》频道 >>