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