findWindowEx index issue RRS feed

  • Question

  • Hi

    i have windows appication(3rd party ) with many dialog box as tabs . These dialog boxes have no control ids

    now i have to get dialog boxes handles to search its child controls .but problem is that when i use below code

    IntPtr Menu1 = FindWindowEx(parentWindow, IntPtr.Zero, TAB_CLASS, null); 
    IntPtr Menu2 = FindWindowEx(parentWindow, Menu1, TAB_CLASS, null);
    IntPtr Menu2 = FindWindowEx(parentWindow, Menu2, TAB_CLASS, null);

    in order changes depending upon menu selected and I got wrong handler

    how i can find these dilaog boxes in static order


    Thursday, September 27, 2012 7:04 AM