Beispiel #1
0
        private void button11_Click(object sender, EventArgs e)
        {
            int         count = 0;
            WndEnumProc proc  = (IntPtr hwnd, int ItParam) =>
            {
                count++;
                Console.WriteLine(hwnd);
                return(true);
            };
            bool result = Win32API.EnumChildWindows(this.Handle, proc, (IntPtr)1);

            Console.WriteLine(string.Format("共找到{0}个子窗口", count));
        }
Beispiel #2
0
 public static extern bool EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
 private static extern bool EnumWindows(WndEnumProc lpEnumFunc, int lParam);
Beispiel #4
0
 public static extern bool EnumThreadWindows(uint threadId, WndEnumProc lpfn, IntPtr lParam);
Beispiel #5
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
Beispiel #6
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
Beispiel #7
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, in IntPtr lParam);
Beispiel #8
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, AutoModeType lParam);
Beispiel #9
0
 public static extern bool EnumChildWindows(
     IntPtr hWndParent,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
 public static extern int EnumWindows(WndEnumProc lpEnumFunc, int lParam);
Beispiel #11
0
 public static extern bool EnumThreadWindows(
     uint dwThreadId,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
Beispiel #12
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
Beispiel #13
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
Beispiel #14
0
 private static extern int EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
Beispiel #15
0
 public static extern int EnumChildWindows(IntPtr hWndParent, WndEnumProc lpfn, int lParam);