miepmuts 10 Newbie Poster

I was just wondering the following.
In my win32 GUI application I have callback functions like

static BOOL CALLBACK UserInterface::DialogProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)

Is it possitble like in my other callback functions to pass a this pointer, so it would look something like this:

static BOOL CALLBACK UserInterface::DialogProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam, void* vptr)

and still be using the CreateDialog function?

That way I can get rid of all other members of the UserInterface class being static.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.