Code: Select all
//Headers:
#include <windows.h>
#include <string>
#include <sstream>
#include <commctrl.h>
//enumchildwindows callback function:
BOOL CALLBACK RemList(HWND hwnd, LPARAM lParam)
{
char Buff[30];
GetClassName(hwnd, Buff, 30);
std::string chk = Buff;
if(chk.substr(0, 13) == "SysListView32")
{
int count = SendMessage(hwnd, LVM_GETHOTITEM, 0, 0);
//int count = ListView_GetHotItem(hwnd);
std::string tst = int2str(count);
MessageBox(0, tst.c_str(), "test", 0);
Sleep(3000);
return FALSE;
}
return TRUE;
}
error: 'ListView_GetHotItem' was not declared in this scope
I have also added commctrl32.a to the linker settings... What's wrong?