callbacks within a class?
heeuo, I'm just wondering if something like this is possible:
Code:
class myClass{
void RegisterWindow();
RESULT CALLBACK myProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
...
}
...
...
void myClass::RegisterWindow()
{
WNDCLASSEX wnd;
wnd.cbClsExtra=NULL
...//some more initialization
wnd.lpfnWndProc = myProc;
...
}
offcourse the above generates errors but is there a way to use a class member as callback function??
/thankkkks :)
/btq
/
/
[edit]Nice try with the code tags, read this for next time. Hammer.