Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!olivea!uunet!mcsun!ukc!stl!servax0!sersun1!whisd From: whisd@sersun1.essex.ac.uk (Whiteside S D B) Newsgroups: comp.windows.ms.programmer Subject: Window Handles: what's real? Summary: Why are there two incarnations of a window's handle? Keywords: windows, microsoft, handle Message-ID: <5175@servax0.essex.ac.uk> Date: 17 May 91 09:25:48 GMT References: <108350001@hplred.HP.COM> Sender: news@servax0.essex.ac.uk Reply-To: whisd@essex.ac.uk (Whiteside S D B) Organization: University of Essex, Colchester, UK Lines: 14 Can anyone clarify this for me? When I use a CreateWindow call, my window's message function gets called with one of the parameters being hWnd. When the CreateWindow call returns it gives me the hWnd for the window just created. BUT... these two handles are different! Which is the real one? I've tried both, and both seem to work. Why does a window need TWO handles?!! Thanks in advance, Simon Whiteside