Pointer to a class inside the WindowsProcedure function

This is a discussion on Pointer to a class inside the WindowsProcedure function within the Windows Programming forums, part of the Platform Specific Boards category; Basically, i have a class which starts a thread that spawns a new window. The function running inside the new ...

Pointer to a class inside the WindowsProcedure function

Basically, i have a class which starts a thread that spawns a new window. The function running inside the new thread gets a pointer to the class object to acces inside variables. The problem comes with the windows procedure used by the new window created. How can i have a pointer to the class object inside the callback function?