Beispiel #1
0
        private void propertyViewPanel_Resize(object sender, System.EventArgs e)
        {
            IntPtr hwnd = UnmanagedMethods.GetWindow(propertyViewPanel.Handle, (int)GetWindowCmd.GW_CHILD);

            UnmanagedMethods.MoveWindow(hwnd, 0, 0, propertyViewPanel.Width, propertyViewPanel.Height, true);
        }
Beispiel #2
0
 public void BuildAllWindowsTree()
 {
     UnmanagedMethods.EnumChildWindows(rootNode.Hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero);
 }
Beispiel #3
0
 public void BuildThreadWindowsTree(int threadId)
 {
     UnmanagedMethods.EnumThreadWindows(threadId, new WindowEnumProc(this.OnEnumThreadWindow), IntPtr.Zero);
 }
Beispiel #4
0
 private int OnEnumThreadWindow(IntPtr hwnd, IntPtr lParam)
 {
     AddWindow(hwnd);
     UnmanagedMethods.EnumChildWindows(hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero);
     return(1);
 }