🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2411

Re: FindWindow

#2411
From: Tom W. Brown
Date: Thu, 28 Jan 1993 19:29
22 lines
1501 bytes
In article <1993Jan28.140241.29976@crd.ge.com>, deitsch@sol.crd.ge.com (Andy Deitsch) writes:
|> I am trying to get the handle of an MDIChild window from a sibling
|> MDIChild window.  When I use FindWindow I get a NULL returned which
|> seems to mean that the window was not found.  I have tried using
|> NULL for the caption only passing the class name and also the other
|> way around (NULL for class name, passing in the caption).

From the reference manual:

  The FindWindow function retrieves the handle of the window whose
  class name and window name match the specified strings.  The
  function does not search child windows.

So, you ask, how does one find the handle of a sibling child window
then?  The answer is in the GetWindow() function.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Technical Details
Message-ID: <758@lax.lax.pe-nelson.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!lax.pe-nelson.com!lax!twbrown
References: <1993Jan28.140241.29976@crd.ge.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!lax.pe-nelson.com!lax!twbrown
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: FindWindow
Message-ID: <758@lax.lax.pe-nelson.com>
Date: 28 Jan 93 19:29:26 GMT
References: <1993Jan28.140241.29976@crd.ge.com>
Sender: news@lax.pe-nelson.com
Organization: PE-Nelson
Lines: 22