/// Enumerate all of the sub-windows belonging to `Self` recursively
Enumerate all of the sub-windows belonging to `Self` recursively
Enumerate all of the sub - windows belonging to ` Self ` recursively
pub fn enumerate_subwindows(&self) -> io::Result<WindowListing> {
        // Create a new, empty window listing
        let mut listing = WindowListing::default();
        unsafe {
            // Enumerate all the child windows
            if EnumChildWindows(self.hwnd, 
                    Self::enum_child_window_callback,
                    &mut listing as *mut WindowListing as usize) {
                // Child windows successfully enumerated
                Ok(listing)
            } else {
                // Failure during call to `EnumChildWindows()`
                Err(io::Error::last_os_error())
            }
        }
    }
pub fn enumerate_subwindows ( & self ) -> io :: Result < WindowListing > { // Create a new, empty window listing let mut listing = WindowListing :: default ( ) ; unsafe { // Enumerate all the child windows if EnumChildWindows ( self . hwnd , Self :: enum_child_window_callback , & mut listing as * mut WindowListing as usize ) { // Child windows successfully enumerated Ok ( listing ) } else { // Failure during call to `EnumChildWindows()` Err ( io :: Error :: last_os_error ( ) ) } } }
Enumerate all of the sub-windows belonging to `Self` recursively
Enumerate all of the sub - windows belonging to ` Self ` recursively
&self