title: How to get the HWND of a Combobox in another window?
body: <p>How can I get the HWND of the Combobox using C++ in another third party application?</p>
  
  <p>MSDN has a function called <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms645481%28v=vs.85%29.aspx" rel="nofollow">GetDlgItem()</a> but the 2nd parameter requires the ID of the control. There is the function <a href="https://msdn.microsoft.com/en-us/library/windows/desktop/ms645478%28v=vs.85%29.aspx" rel="nofollow">GetDlgCtrlID()</a> to get that control ID but that requires the HWND of the Combobox.</p>
  
  <p>Would I have to use UIspy or Spy++ to retrieve information to accomplish this?</p>