class - C++ multiple instances of static members -


possible duplicate:
best method storing pointer use in wndproc

i'm trying write generic class handles win32 controls, problem is, wndproc message handler function static cannot access important local class members such hwnd function unless make them static , instantiate them in global namespace.

now did try discovered minute created instance of control class, created instance got static member values on written new one. have idea how go implementing class? possible somehow have multiple instances of static member?

thanks,

use static wndproc proxy function calls specific object instance passed static wndproc. use getwindowlongptr , setwindowlongptr api store pointer instance created window.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -