A mi si me lo reconoce. La funcion la tengo asi:
Código PHP:
LRESULT WINAPI MouseEvent(int nCode, WPARAM wParam, LPARAM lParam)
{
TPoint Point;
if(nCode == HC_ACTION){
GetCursorPos(&Point);
ScreenToClient(Form1->Handle, &Point);
if(PtInRect(Form1->GetClientRect(), Point))
return -1;
}
return CallNextHookEx(hMouseHook, nCode, wParam, lParam);
}
y me da estos errores:
Cita:
[C++ Error] Main.cpp(68): E2247 '_fastcall TCustomForm::GetClientRect()' is not accessible
[C++ Error] Main.cpp(68): E2285 Could not find a match for 'PtInRect(undefined,TPoint)'
|
el segundo es culpa del primero.