c++ 用SENDMESSAGE 排列桌面图标 的问题

来源:百度知道 编辑:UC知道 时间:2024/05/24 17:01:46
::SendMessage(hDesktop, LVM_SetItemPosition,1,(LPARAM)&pt)
编译出错
error C2065: 'LVM_SetItemPosition' : undeclared identifier
上网查了也没发现输错

你应该使用大写,即:LVM_SETITEMPOSITION。

除了'LVM_SetItemPosition要改为LVM_SETITEMPOSITION还要引用#include <CommCtrl.h>

没有声明identifier

重买电脑

非法