I'm using the MFC selection of classes for windows programming, which has only 3 parameters for sendmessage (basically the same as the 4 parameter one but leaves out the first parameter as it's taken as global with MFC)
heres my code as it stands:
Code:
void CAstraView::OnGOHOME()
{
CWnd* IE;
IE = FindWindow("IEFrame", NULL);
if(IE == NULL)
{
MessageBox("IE Window not found", "Error" ,MB_OK);
}
else
{
IE->SendMessage(WM_MOUSEACTIVATE, IE, HTCLIENT);
IE->SendMessage(WM_LBUTTONDOWN, MK_LBUTTON, MAKELPARAM(208, 46));
}
}
and here's my only error:
error C2664: 'SendMessageA' : cannot convert parameter 2 from 'class CWnd *' to 'unsigned int'
which refers to this line ''IE->SendMessage(WM_MOUSEACTIVATE, IE, HTCLIENT);''
Thanks in advance