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); }
public void BuildAllWindowsTree() { UnmanagedMethods.EnumChildWindows(rootNode.Hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero); }
public void BuildThreadWindowsTree(int threadId) { UnmanagedMethods.EnumThreadWindows(threadId, new WindowEnumProc(this.OnEnumThreadWindow), IntPtr.Zero); }
private int OnEnumThreadWindow(IntPtr hwnd, IntPtr lParam) { AddWindow(hwnd); UnmanagedMethods.EnumChildWindows(hwnd, new WindowEnumProc(this.OnEnumWindow), IntPtr.Zero); return(1); }