staticconstwchar_t *lol=L"";
LRESULT WINAPI BSSSendMessageW(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
{
if ( msg == LVM_INSERTITEMW || msg == LVM_SETITEMW)//Intercepts LVM_INSERTITEM and LVM_SETITEM messages
{
if (!lstrcmpW(((LVITEMW*)lparam)->pszText, lol))//The lparam is a LVITEM* struct.
{
return 0;//we simply return 0 (and we do not call the real SendMessage function.
}
return 0;
}
return base.SendMessage(hwnd, msg, wparam, lparam);//Calls the real SendMessage function.
}
But show me that base is not declared, however i always use base.sendmessage to send the message of the function i am calling.
Error:
1 2 3 4
Dynamic.cpp: In function 'LRESULT BSSSendMessageW(HWND, UINT, WPARAM, LPARAM)':
Dynamic.cpp:37:12: error: 'base' was not declared in this scope
return base.SendMessage(hwnd, msg, wparam, lparam);//Calls the real SendMessage function.
^~~~