title: Finding Handle of a control inside a window
body: <p>Given the handle to a parent window, How can I get the handle of a button inside this window?</p>
  
  <p>I'm using <code>win32api.sendMessage( )</code> to pass values to a window. I want to use <code>BM_CLICK</code> to click on the button in question. </p>
  
  <pre><code>import win32api
  import win32gui
  import win32con
  
  #get handle of the window I want
  
  hwnd=win32gui.FindWindow(0,"SOME TITLE")
  
  #btnHnd= (NEED CODE HERE TO GET THE HANDLE OF THE BUTTON INSIDE hwnd)
  
  win32api.SendMessage(btnHnd, win32con.BM_CLICK, 0, 0)
  </code></pre>