On Thu, 27 Jul 2000, Douglas Ridgway wrote:
> On Thu, 27 Jul 2000, Reece Dunn wrote:
>
> > in the
> > case WM_ACTIVATE:
> > section, the
> > SetWindowPos( wndPtr -> hwndSelf, HWND_TOP, 0, 0, 0, 0, SWP_NOMOVE |
> > SWP_NOSIZE );
> > line is questionmarked.
> >
> > In the windows documentation on this function,
Which function? DefWindowProc? WM_ACTIVATE? In the window documentation I
have, SetWindowPos should *not* be called from DefWindowProc's WM_ACTIVATE
handler; it should only set the keyboard focus. Trying to alter the
Z-order from within WM_ACTIVATE is a mistake, and typically leads to
infinite recursions, as WM_ACTIVATE is a response to the window being
"brought to the top" in the first place.