Esempio n. 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));
        }
Esempio n. 2
0
 public static extern bool EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
 private static extern bool EnumWindows(WndEnumProc lpEnumFunc, int lParam);
Esempio n. 4
0
 public static extern bool EnumThreadWindows(uint threadId, WndEnumProc lpfn, IntPtr lParam);
Esempio n. 5
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
Esempio n. 6
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
Esempio n. 7
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, in IntPtr lParam);
Esempio n. 8
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, AutoModeType lParam);
Esempio n. 9
0
 public static extern bool EnumChildWindows(
     IntPtr hWndParent,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
 public static extern int EnumWindows(WndEnumProc lpEnumFunc, int lParam);
Esempio n. 11
0
 public static extern bool EnumThreadWindows(
     uint dwThreadId,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
Esempio n. 12
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
Esempio n. 13
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
Esempio n. 14
0
 private static extern int EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
Esempio n. 15
0
 public static extern int EnumChildWindows(IntPtr hWndParent, WndEnumProc lpfn, int lParam);