WNDPROC OldMsgProc;
LRESULT MyMsgProc(HWND hwnd,UINT message, WPARAM wParam, LPARAM lParam);OldMsgProc = (WNDPROC)SetWindowLong(m_hWnd, GWL_WNDPROC, (LONG)MyMsgProc);
想把窗口消息的处理函数定向到自己定义的函数MyMsgProc()中,但是
编译报错,cannot convert from 'long (__thiscall CScenarioWriterDlg::*)(struct HWND__ *,unsigned int,unsigned int,long)' to 'long'。
哪位达人帮我想想办法?