I'm trying to get WindowProc from another window, and set my WindowProc to it. I use:
but it gives me an LVALUE needed error message. can someone help me out?Code:LRESULT CALLBACK Proc1(HWND, UINT, LPARAM, WPARAM); // or WPARAM, LPARAM, I can't remember what order LRESULT CALLBACK Proc2(HWND, UINT, LPARAM, WPARAM); ... Proc1 = (LRESULT CALLBACK) SetWindowLong(hwnd, SWL_WNDPROC, Proc2);