I am subclassing a dialog and want to put the callback procedure into a class which manages that part of an application. I get the following cast error:
cannot convert from
'long (__stdcall ManagerObj::*)(struct HWND__ *, unsinged int, unsigned int, long)'
to
'unsigned long'
This occurs when I try to subclass the callback as follows:
origLineNumsProc = (WNDPROC)SetWindowLong(ghNums, GWL_WNDPROC, (DWORD)LineNumsProc);
The error refers to the third param of SetWindowLong. The same subclass attempt works in the global space of the program but putting into this class causes this error. The class declaration compiles fine as long as I don't try to subclass the dialog.
--Will Duty
wduty@radicalfringe.com
cannot convert from
'long (__stdcall ManagerObj::*)(struct HWND__ *, unsinged int, unsigned int, long)'
to
'unsigned long'
This occurs when I try to subclass the callback as follows:
origLineNumsProc = (WNDPROC)SetWindowLong(ghNums, GWL_WNDPROC, (DWORD)LineNumsProc);
The error refers to the third param of SetWindowLong. The same subclass attempt works in the global space of the program but putting into this class causes this error. The class declaration compiles fine as long as I don't try to subclass the dialog.
--Will Duty
wduty@radicalfringe.com