sancarn / stdVBA

VBA Standard Library - A Collection of libraries to form a common standard layer for modern VBA applications.
MIT License
294 stars 58 forks source link

stdWindow - shell windows #22

Closed sancarn closed 4 months ago

sancarn commented 3 years ago

Would be nice to be able to obtain the shell windows representing a window

Obtainable by:

Property Get shellWindows() as Collection
  set shellWindows = new Collection
  Dim shell as object: set shell = CreateObject("Shell.Application")
  Dim shWin as object
  For each shWin in shell.windows
    if shWin = handle then
      call shellWindows.add(shWin)
    end if
  next
end property