🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.ms-windows.programmer.misc
2 messages
2 total messages Started by Andy Deitsch Thu, 28 Jan 1993 14:02
FindWindow
#2396
Author: Andy Deitsch
Date: Thu, 28 Jan 1993 14:02
13 lines
1093 bytes
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).

Anyone have any hints?

-- 
_________________________________________________________________________
Andy Deitsch                             email    : deitsch@crd.ge.com  
GE Corporate Research & Development      phone    : (518) 387-7207   
Schenectday, NY 12301                    dial comm: 833-7207     
Re: FindWindow
#2411
Author: 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
----------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads