home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5457 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.4 KB

  1. Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
  2. From: twbrown@PE-Nelson.COM (Tom W. Brown)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: FindWindow
  5. Message-ID: <758@lax.lax.pe-nelson.com>
  6. Date: 28 Jan 93 19:29:26 GMT
  7. References: <1993Jan28.140241.29976@crd.ge.com>
  8. Sender: news@lax.pe-nelson.com
  9. Organization: PE-Nelson
  10. Lines: 22
  11.  
  12. In article <1993Jan28.140241.29976@crd.ge.com>, deitsch@sol.crd.ge.com (Andy Deitsch) writes:
  13. |> I am trying to get the handle of an MDIChild window from a sibling
  14. |> MDIChild window.  When I use FindWindow I get a NULL returned which
  15. |> seems to mean that the window was not found.  I have tried using
  16. |> NULL for the caption only passing the class name and also the other
  17. |> way around (NULL for class name, passing in the caption).
  18.  
  19. From the reference manual:
  20.  
  21.   The FindWindow function retrieves the handle of the window whose
  22.   class name and window name match the specified strings.  The
  23.   function does not search child windows.
  24.  
  25. So, you ask, how does one find the handle of a sibling child window
  26. then?  The answer is in the GetWindow() function.
  27.  
  28.  
  29. ----------------------------------------------------------------------------
  30. Tom Brown               |  "She turned me into a newt...
  31. PE Nelson Systems       |                                  ... I got better"
  32. twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
  33. ----------------------------------------------------------------------------
  34.