Hi all,
In the situation that you create a class to represent a child window, how do you deal with the windows procedure for the child class in an OOP sense?
The difficulty I am having is that I cannot use a member function from this class as the windows procedure. i.e.
So how is it done? Friend functions? or wha?Code:class ChildWindow
{
public:
ChildWindow();
LRESULT CALLBACK ChildWndProc(HWND, UINT, WPARAM, LPARAM);
};
Cheers.