예제 #1
0
 /// <summary>
 /// Called whenever a new window is about to be added
 /// by the Window enumeration called from GetWindows.
 /// If overriding this function, return true to continue
 /// enumeration or false to stop.  If you do not call
 /// the base implementation the Items collection will
 /// be empty.
 /// </summary>
 /// <param name="hWnd">Window handle to add</param>
 /// <returns>True to continue enumeration, False to stop</returns>
 protected virtual bool OnWindowEnum(
     IntPtr hWnd)
 {
     items.Add(hWnd);
     return(true);
 }