Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!cass.ma02.bull.com!mips2!bull.bull.fr!corton!mcsun!sunic!fuug!tuura!risto From: risto@tuura.UUCP (Risto Lankinen) Newsgroups: comp.windows.ms.programmer Subject: Re: Window Handles: what's real? Keywords: windows, microsoft, handle Message-ID: <1181@tuura.UUCP> Date: 20 May 91 07:32:26 GMT References: <108350001@hplred.HP.COM> <5175@servax0.essex.ac.uk> Organization: Nokia Data Systems Oy Lines: 20 whisd@sersun1.essex.ac.uk (Whiteside S D B) writes: >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? Hi! They're probably the same handle in locked and unlocked format. So it is, if their difference is 1 (and the odd hWnd is greater than the even hWnd). Terveisin: Risto Lankinen -- Risto Lankinen / product specialist *************************************** Nokia Data Systems, Technology Dept * 2 3 * THIS SPACE INTENTIONALLY LEFT BLANK * 2 +1 is PRIME! Now working on 2 -1 * replies: risto@yj.data.nokia.fi ***************************************