I've declared a worker thread as a static member of a given class:

UINT MyClass:Mythread(LPVOID pParam)
{
pParam->MemberOfMyClass = TRUE;
}

Then I begin the thread of execution:
m_hInputThread = AfxBeginThread(Mythread, (LPVOID)this);

I'm not sure exactly how I can provide AfxBeginThread access to the this pointer. I need to provide the worker class access to the members of the class.

Help and thanks in advance!
Philip