Original Post
I'm not really certain how to override this... Let's say we've got class "CApplication", with a member function, below:
... how is it possible to set up a WndClassEx structure such that the compiler will let you choose a class method ...
... and not spit out a compiler error like ...
??
I can't seem to typecast the function pointer to anything (like __stdcall) because the compiler simply won't take it. Any suggestions are welcome.
(And dealing with WindowProc() outside the CApplication class is not an option.)
Thanks!
Edited by - MatrixCubed on July 31, 2001 11:59:32 PM
LRESULT CALLBACK CApplication::WindowProc(HWND hWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
{
}
|
m_WndClassEx.lpfnWndProc = this->WindowProc;
or
m_WndClassEx.lpfnWndProc = CApplication::WindowProc;
|
Cannot convert from 'long (__stdcall CApplication::*)(struct HWND__ *, unsigned int, unsigned int, long)' to 'long (__stdcall *)(struct HWND__ *, unsigned int, unsigned int, long)' |