示例#1
0
文件: Form1.cs 项目: veyvin/Win32API
        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));
        }
示例#2
0
 public static extern bool EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
 private static extern bool EnumWindows(WndEnumProc lpEnumFunc, int lParam);
示例#4
0
 public static extern bool EnumThreadWindows(uint threadId, WndEnumProc lpfn, IntPtr lParam);
示例#5
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
示例#6
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
示例#7
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, in IntPtr lParam);
示例#8
0
 internal static extern bool EnumWindows(WndEnumProc lpEnumFunc, AutoModeType lParam);
示例#9
0
 public static extern bool EnumChildWindows(
     IntPtr hWndParent,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
 public static extern int EnumWindows(WndEnumProc lpEnumFunc, int lParam);
示例#11
0
 public static extern bool EnumThreadWindows(
     uint dwThreadId,
     WndEnumProc lpEnumFunc,
     IntPtr lParam);
示例#12
0
 private static extern bool EnumChildWindows(IntPtr hWndParent, WndEnumProc callback, int lParam);
示例#13
0
 private static extern bool EnumWindows(WndEnumProc callback, int lParam);
示例#14
0
 private static extern int EnumWindows(WndEnumProc lpEnumFunc, IntPtr lParam);
示例#15
0
 public static extern int EnumChildWindows(IntPtr hWndParent, WndEnumProc lpfn, int lParam);