Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hp-pcd!hpcvlx!bturner From: bturner@hpcvlx.HP.COM (Bill Turner) Newsgroups: comp.windows.ms Subject: Re: Why does SetFocus fail? Message-ID: <106580025@hpcvlx.HP.COM> Date: 15 Feb 89 17:10:56 GMT References: <224@nbires.nbi.com> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 10 > This works fine except when the app loses the focus and then regains > it (e.g., if I alt-tab to the dos executive and back). In response to > the WM_ACTIVATEAPP message, I call SetFocus with one of the child's > handles. However, the child does not get the focus;.... How about doing the SetFocus when the parent receives the WM_ACTIVATE message? I can't remember exactly what order ACTIVATEAPP and ACTIVATE come in, and I think that DefWindowProc calls SetFocus on WM_ACTIVATE. --Bill Turner