I want to create a class like this:
The class will be used as shown below:Code:class MyWindow { public: void CreateWindow(...); void WndProc(...); bool MainLoop(); ................ };
Unfortunately, C++ won't let me define as message callback the WndProc() function of each class.Code:int main() { MyWindow *win = new MyWindow; win->CreateWindow(); while(win->MainLoop()) ;
So, what to do next?