Original Post
ok here''s the problem.
i wrote a class of my own named "CEngine". it has a static member function "static LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam )" which is used as the message handler for my app''s main window.
ok, now this window has a menu, and i want to change some Render State parameters through this menu when the app is running. the problem is, MsgProc() must be declared as a static member in my class, and those Render State parameters are also part of my class, they can''t be accessed by MsgProc() coz it''s static!!!
so, how can i change some Render State parameters through window menu? btw i don''t want MsgProc() to be separated from my class.
thx!