I have an ActiveX component (it contains several child windows). I put the component into usual modal dialog (MFC 4.2). The following problem appears: when input focus is located in one of fields of the ActiveX, I press Alt-Tab to go to another application. Since this moment my programs hangs over because of endless messages WM_GETDLGCODE. They come to the child window of the ActiveX where the focus was located before leave.

How may I fix the problem?