in Microsoft Visual C++ 1.52, in the function "OnActivateApp", one of the arguments passed into the function is a handle to an HTASK structure. In the online help provided there is no mention of the HTASK structure. After doing a small amount of investigative work, we know roughly what HTASK is. Our question is, with the handle to the HTASK passed into the function, how do we determine CWnd object attached to it. There is a function "GetWindowTask" which finds the handle of the HTASK structure associated with the passed CWnd, but we want to go the opposite direction. Got any ideas?