hwnd (HWND) - input

      Handle of window to query.

    lCode (LONG) - input

      Type of window information.

      Determines what window information is returned:

      QW_NEXT

        Next window in z-order (window below).
      QW_PREV
        Previous window in z-order (window above).
      QW_TOP
        Topmost child window.
      QW_BOTTOM
        Bottommost child window.
      QW_OWNER
        Owner of window.
      QW_PARENT
        Parent of window.
      QW_NEXTTOP
        Returns the next window of the owner window hierarchy subject to their z-ordering.

        The enumeration is evaluated in this order:

        • The hierarchy of windows owned by this window in their z-order. 2.
            The hierarchy of windows of the next z-ordered window having the same owner as this window.
          3.
            The hierarchy of windows in their z-order having the same owner as the owner of this window. This step is repeated until the top of the owner tree for this window is reached.
          4.
            The hierarchy of windows in their z-order of unowned windows.
          QW_PREVTOP
            Returns the previous main window, in the enumeration order defined by QW_NEXTTOP.
          QW_FRAMEOWNER
            Returns the owner of hwnd normalized so that if shares the same parent as hwnd.

          hwndRelated (HWND) - returns

            Window handle.

            Handle of window related to hwnd.


          [Back] [Next]