The Enable attribute of the control in the Windows API settings window, apienable
Reference page:
Http://www.yuanjiaocheng.net/entity/update-entity-graph.html
Http://www.yuanjiaocheng.net/ASPNET-CORE/first.html
Http://www.yuanjiaocheng.net/ASPNET-CORE/asp-net-core-overview.html
Http://www.yuanjiaocheng.net/ASPNET-CORE/asp.net-core-environment.html
Http://www.yuanjiaocheng.net/ASPNET-CORE/newproject.html
Related interfaces C # interoperability and sending
[DllImport ("user32.dll")] unsafe public static extern bool UpdateWindow (IntPtr hWnd); // update window [DllImport ("user32.dll")] unsafe public static extern bool EnableWindow (IntPtr hWnd, bool bEnable); // set the Enable attribute [DllImport ("user32.dll")] unsafe public static extern IntPtr find1_wex (IntPtr hwndParent, IntPtr failed, string lpszClass, string lpszWindow); // query window/Control
NOTE:
【FindWindowEx】:https://msdn.microsoft.com/en-us/library/ms633500(VS.85).aspx
【UpdateWindow】:https://msdn.microsoft.com/library/windows/desktop/dd145167
【FindWindowEx】:https://msdn.microsoft.com/en-us/library/windows/desktop/ms646291(v=vs.85).aspx
Code segment for obtaining the window sub-control handle
private List<IntPtr> GetAllChildrenWindowHandles(IntPtr hParent, int maxCount) { var handles = new List<IntPtr>(); int ct = 0; IntPtr prevChild = IntPtr.Zero; IntPtr currChild = IntPtr.Zero; while (true && ct < maxCount) { currChild = FindWindowEx(hParent, prevChild, null, null); if (currChild == IntPtr.Zero) break; handles.Add(currChild); prevChild = currChild; ++ct; } return handles; }