### 2021-02-28更新

------
#### ryControls    V2.1.2102.2801
- *.[新增]新增部分WinAPI的注释。
- *.[修复]修复Gdu.WinformUI在开发环境中有时无法拖动修改窗体大小的BUG。
This commit is contained in:
鑫Intel 2021-02-28 16:52:19 +08:00
parent 36d682a736
commit 662a6786d2
51 changed files with 303 additions and 626 deletions

View File

@ -5118,14 +5118,14 @@
</member>
<member name="M:WinAPI.GDI32.DeleteObject(System.IntPtr)">
<summary>
删除一个逻辑笔、画笔、字体、位图、区域或者调色板,释放所有与该对象有关的系统资源,在对象被删除之后,指定的句柄也就失效了。
</summary>
<param name="hObject"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.SelectObject(System.IntPtr,System.IntPtr)">
<summary>
选择一对象到指定的设备上下文环境中,该新对象替换先前的相同类型的对象。
</summary>
<param name="hdc"></param>
<param name="hgdiobj"></param>
@ -5133,14 +5133,14 @@
</member>
<member name="M:WinAPI.GDI32.CreateCompatibleDC(System.IntPtr)">
<summary>
创建一个与指定设备兼容的内存设备上下文环境DC
</summary>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateDC(System.String,System.String,System.String,System.IntPtr)">
<summary>
为一个设备创建设备上下文环境。
</summary>
<param name="driverName"></param>
<param name="deviceName"></param>
@ -5150,7 +5150,7 @@
</member>
<member name="M:WinAPI.GDI32.DeleteDC(System.IntPtr)">
<summary>
删除指定的设备上下文环境Dc
</summary>
<param name="dc"></param>
<returns></returns>
@ -5182,7 +5182,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowDC(System.IntPtr)">
<summary>
返回hWnd参数所指定的窗口的设备环境。
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5201,7 +5201,9 @@
</member>
<member name="M:WinAPI.User32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
将消息信息传送给指定的窗口过程的函数。使用函数CallWindowsProc可进行窗口子分类。
通常来说,同一类的所有窗口共享一个窗口过程。子类是一个窗口或者相同类的一套窗口,
在其消息被传送到该类的窗口过程之前,这些消息是由另一个窗口过程进行解释和处理的。
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
@ -5212,16 +5214,25 @@
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
设置弹出式窗口,层叠窗口或子窗口的父窗口
</summary>
<param name="hwndChild"></param>
<param name="hwndParent"></param>
@ -5229,31 +5240,43 @@
</member>
<member name="M:WinAPI.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
获得一个指定子窗口的父窗口句柄
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作</param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Boolean)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作。
如果此参数为FALSEGetSystemMenu返回当前使用窗口菜单的拷贝的句柄。该拷贝初始时与窗口菜单相同但可以被修改。
如果此参数为TRUEGetSystemMenu重置窗口菜单到缺省状态。如果存在先前的窗口菜单将被销毁。
</param>
<returns>如果参数bRevert为FALSE返回值是窗口菜单的拷贝的句柄如果参数bRevert为TRUE返回值是NULL。</returns>
</member>
<member name="M:WinAPI.User32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
从指定菜单删除一个菜单项或分离一个子菜单。
备注只要一个菜单被修改无论它是否在显示窗口里应用程序都必须调用函数DrawMenuBar。
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="hMenu">将被修改的菜单的句柄。</param>
<param name="nPosition">指定将被删除的菜单项其含义由参数wFlags决定。</param>
<param name="wFlags"></param>
<returns></returns>
<returns>如果函数调用成功返回非零值如果函数调用失败返回值是零。若想获得更多的错误信息请调用GetLastError函数。</returns>
</member>
<member name="M:WinAPI.User32.SetForegroundWindow(System.IntPtr)">
<summary>
设置前台窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5268,7 +5291,7 @@
<summary>
获得当前活动窗体
</summary>
<returns></returns>
<returns>活动窗口的句柄。如没有窗口处于活动状态或处于活动状态的窗口非当前线程创建,则返回零。</returns>
</member>
<member name="M:WinAPI.User32.SetActiveWindow(System.IntPtr)">
<summary>
@ -5312,7 +5335,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5322,7 +5345,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5332,7 +5355,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.UInt32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="Msg"></param>
@ -5361,14 +5384,14 @@
</member>
<member name="M:WinAPI.User32.LoadCursorFromFile(System.String)">
<summary>
从文件中载入指针
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindowVisible(System.IntPtr)">
<summary>
判断窗口是否可见
</summary>
<param name="hwnd"></param>
<returns></returns>
@ -5410,7 +5433,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowLong(System.IntPtr,System.Int32)">
<summary>
获取指定窗口的有关信息也可用于获取窗口内存中指定偏移的32位度整型值。
</summary>
<param name="hWnd"></param>
<param name="dwStyle"></param>
@ -5418,14 +5441,14 @@
</member>
<member name="M:WinAPI.User32.GetDC(System.IntPtr)">
<summary>
检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.ReleaseDC(System.IntPtr,System.IntPtr)">
<summary>
释放设备上下文环境DC供其他应用程序使用。函数的效果与设备上下文环境类型有关。它只释放公用的和设备上下文环境对于类或私有的则无效。
</summary>
<param name="hwnd"></param>
<param name="hdc"></param>
@ -5433,7 +5456,7 @@
</member>
<member name="M:WinAPI.User32.GetClientRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
获取窗口客户区的大小。注意一下:窗口的客户区为窗口中除标题栏、菜单栏之外的地方。
</summary>
<param name="hwnd"></param>
<param name="rect"></param>
@ -5441,7 +5464,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
</summary>
<param name="hWnd"></param>
<param name="rect"></param>
@ -5449,7 +5472,7 @@
</member>
<member name="M:WinAPI.User32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,System.Drawing.Point@,System.Drawing.Size@,System.IntPtr,System.Drawing.Point@,System.Int32,WinAPI.Struct.BLENDFUNCTION@,System.Int32)">
<summary>
更新一个分层窗口的位置,大小,形状,内容和半透明度
</summary>
<param name="hwnd"></param>
<param name="hdcDst"></param>
@ -5462,20 +5485,10 @@
<param name="dwFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,WinAPI.Struct.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
@ -5488,7 +5501,8 @@
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)">
<summary>
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd"></param>
<param name="hWndInsertAfter"></param>

View File

@ -5707,55 +5707,6 @@
Specified WM_THEMECHANGED enumeration value.
</summary>
</member>
<member name="M:ryControls.Win32API.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.FindWindowEx(System.IntPtr,System.IntPtr,System.String,System.String)">
<summary>
The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
</summary>
<param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
<param name="hwndChildAfter">Handle to a child window.</param>
<param name="lpszClass">Specifies class name.</param>
<param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
<returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.InvalidateRect(System.IntPtr,System.Drawing.Rectangle@,System.Boolean)">
<summary>
The InvalidateRect function adds a rectangle to the specified window's update region.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Rectangle coordinates.</param>
<param name="bErase">Erase state.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.ValidateRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Validation rectangle coordinates.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,ryControls.Win32API.User32.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
<param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
<param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
<param name="Width">Specifies the new width of the window, in pixels.</param>
<param name="Height">Specifies the new height of the window, in pixels.</param>
<param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
<returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
</member>
<member name="T:ryControls.NodeItem">
<summary>

View File

@ -5118,14 +5118,14 @@
</member>
<member name="M:WinAPI.GDI32.DeleteObject(System.IntPtr)">
<summary>
删除一个逻辑笔、画笔、字体、位图、区域或者调色板,释放所有与该对象有关的系统资源,在对象被删除之后,指定的句柄也就失效了。
</summary>
<param name="hObject"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.SelectObject(System.IntPtr,System.IntPtr)">
<summary>
选择一对象到指定的设备上下文环境中,该新对象替换先前的相同类型的对象。
</summary>
<param name="hdc"></param>
<param name="hgdiobj"></param>
@ -5133,14 +5133,14 @@
</member>
<member name="M:WinAPI.GDI32.CreateCompatibleDC(System.IntPtr)">
<summary>
创建一个与指定设备兼容的内存设备上下文环境DC
</summary>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateDC(System.String,System.String,System.String,System.IntPtr)">
<summary>
为一个设备创建设备上下文环境。
</summary>
<param name="driverName"></param>
<param name="deviceName"></param>
@ -5150,7 +5150,7 @@
</member>
<member name="M:WinAPI.GDI32.DeleteDC(System.IntPtr)">
<summary>
删除指定的设备上下文环境Dc
</summary>
<param name="dc"></param>
<returns></returns>
@ -5182,7 +5182,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowDC(System.IntPtr)">
<summary>
返回hWnd参数所指定的窗口的设备环境。
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5201,7 +5201,9 @@
</member>
<member name="M:WinAPI.User32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
将消息信息传送给指定的窗口过程的函数。使用函数CallWindowsProc可进行窗口子分类。
通常来说,同一类的所有窗口共享一个窗口过程。子类是一个窗口或者相同类的一套窗口,
在其消息被传送到该类的窗口过程之前,这些消息是由另一个窗口过程进行解释和处理的。
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
@ -5212,16 +5214,25 @@
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
设置弹出式窗口,层叠窗口或子窗口的父窗口
</summary>
<param name="hwndChild"></param>
<param name="hwndParent"></param>
@ -5229,31 +5240,43 @@
</member>
<member name="M:WinAPI.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
获得一个指定子窗口的父窗口句柄
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作</param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Boolean)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作。
如果此参数为FALSEGetSystemMenu返回当前使用窗口菜单的拷贝的句柄。该拷贝初始时与窗口菜单相同但可以被修改。
如果此参数为TRUEGetSystemMenu重置窗口菜单到缺省状态。如果存在先前的窗口菜单将被销毁。
</param>
<returns>如果参数bRevert为FALSE返回值是窗口菜单的拷贝的句柄如果参数bRevert为TRUE返回值是NULL。</returns>
</member>
<member name="M:WinAPI.User32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
从指定菜单删除一个菜单项或分离一个子菜单。
备注只要一个菜单被修改无论它是否在显示窗口里应用程序都必须调用函数DrawMenuBar。
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="hMenu">将被修改的菜单的句柄。</param>
<param name="nPosition">指定将被删除的菜单项其含义由参数wFlags决定。</param>
<param name="wFlags"></param>
<returns></returns>
<returns>如果函数调用成功返回非零值如果函数调用失败返回值是零。若想获得更多的错误信息请调用GetLastError函数。</returns>
</member>
<member name="M:WinAPI.User32.SetForegroundWindow(System.IntPtr)">
<summary>
设置前台窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5268,7 +5291,7 @@
<summary>
获得当前活动窗体
</summary>
<returns></returns>
<returns>活动窗口的句柄。如没有窗口处于活动状态或处于活动状态的窗口非当前线程创建,则返回零。</returns>
</member>
<member name="M:WinAPI.User32.SetActiveWindow(System.IntPtr)">
<summary>
@ -5312,7 +5335,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5322,7 +5345,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5332,7 +5355,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.UInt32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="Msg"></param>
@ -5361,14 +5384,14 @@
</member>
<member name="M:WinAPI.User32.LoadCursorFromFile(System.String)">
<summary>
从文件中载入指针
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindowVisible(System.IntPtr)">
<summary>
判断窗口是否可见
</summary>
<param name="hwnd"></param>
<returns></returns>
@ -5410,7 +5433,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowLong(System.IntPtr,System.Int32)">
<summary>
获取指定窗口的有关信息也可用于获取窗口内存中指定偏移的32位度整型值。
</summary>
<param name="hWnd"></param>
<param name="dwStyle"></param>
@ -5418,14 +5441,14 @@
</member>
<member name="M:WinAPI.User32.GetDC(System.IntPtr)">
<summary>
检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.ReleaseDC(System.IntPtr,System.IntPtr)">
<summary>
释放设备上下文环境DC供其他应用程序使用。函数的效果与设备上下文环境类型有关。它只释放公用的和设备上下文环境对于类或私有的则无效。
</summary>
<param name="hwnd"></param>
<param name="hdc"></param>
@ -5433,7 +5456,7 @@
</member>
<member name="M:WinAPI.User32.GetClientRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
获取窗口客户区的大小。注意一下:窗口的客户区为窗口中除标题栏、菜单栏之外的地方。
</summary>
<param name="hwnd"></param>
<param name="rect"></param>
@ -5441,7 +5464,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
</summary>
<param name="hWnd"></param>
<param name="rect"></param>
@ -5449,7 +5472,7 @@
</member>
<member name="M:WinAPI.User32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,System.Drawing.Point@,System.Drawing.Size@,System.IntPtr,System.Drawing.Point@,System.Int32,WinAPI.Struct.BLENDFUNCTION@,System.Int32)">
<summary>
更新一个分层窗口的位置,大小,形状,内容和半透明度
</summary>
<param name="hwnd"></param>
<param name="hdcDst"></param>
@ -5462,20 +5485,10 @@
<param name="dwFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,WinAPI.Struct.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
@ -5488,7 +5501,8 @@
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)">
<summary>
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd"></param>
<param name="hWndInsertAfter"></param>

View File

@ -5707,55 +5707,6 @@
Specified WM_THEMECHANGED enumeration value.
</summary>
</member>
<member name="M:ryControls.Win32API.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.FindWindowEx(System.IntPtr,System.IntPtr,System.String,System.String)">
<summary>
The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
</summary>
<param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
<param name="hwndChildAfter">Handle to a child window.</param>
<param name="lpszClass">Specifies class name.</param>
<param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
<returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.InvalidateRect(System.IntPtr,System.Drawing.Rectangle@,System.Boolean)">
<summary>
The InvalidateRect function adds a rectangle to the specified window's update region.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Rectangle coordinates.</param>
<param name="bErase">Erase state.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.ValidateRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Validation rectangle coordinates.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,ryControls.Win32API.User32.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
<param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
<param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
<param name="Width">Specifies the new width of the window, in pixels.</param>
<param name="Height">Specifies the new height of the window, in pixels.</param>
<param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
<returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
</member>
<member name="T:ryControls.NodeItem">
<summary>

View File

@ -5118,14 +5118,14 @@
</member>
<member name="M:WinAPI.GDI32.DeleteObject(System.IntPtr)">
<summary>
删除一个逻辑笔、画笔、字体、位图、区域或者调色板,释放所有与该对象有关的系统资源,在对象被删除之后,指定的句柄也就失效了。
</summary>
<param name="hObject"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.SelectObject(System.IntPtr,System.IntPtr)">
<summary>
选择一对象到指定的设备上下文环境中,该新对象替换先前的相同类型的对象。
</summary>
<param name="hdc"></param>
<param name="hgdiobj"></param>
@ -5133,14 +5133,14 @@
</member>
<member name="M:WinAPI.GDI32.CreateCompatibleDC(System.IntPtr)">
<summary>
创建一个与指定设备兼容的内存设备上下文环境DC
</summary>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateDC(System.String,System.String,System.String,System.IntPtr)">
<summary>
为一个设备创建设备上下文环境。
</summary>
<param name="driverName"></param>
<param name="deviceName"></param>
@ -5150,7 +5150,7 @@
</member>
<member name="M:WinAPI.GDI32.DeleteDC(System.IntPtr)">
<summary>
删除指定的设备上下文环境Dc
</summary>
<param name="dc"></param>
<returns></returns>
@ -5182,7 +5182,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowDC(System.IntPtr)">
<summary>
返回hWnd参数所指定的窗口的设备环境。
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5201,7 +5201,9 @@
</member>
<member name="M:WinAPI.User32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
将消息信息传送给指定的窗口过程的函数。使用函数CallWindowsProc可进行窗口子分类。
通常来说,同一类的所有窗口共享一个窗口过程。子类是一个窗口或者相同类的一套窗口,
在其消息被传送到该类的窗口过程之前,这些消息是由另一个窗口过程进行解释和处理的。
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
@ -5212,16 +5214,25 @@
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
设置弹出式窗口,层叠窗口或子窗口的父窗口
</summary>
<param name="hwndChild"></param>
<param name="hwndParent"></param>
@ -5229,31 +5240,43 @@
</member>
<member name="M:WinAPI.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
获得一个指定子窗口的父窗口句柄
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作</param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Boolean)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作。
如果此参数为FALSEGetSystemMenu返回当前使用窗口菜单的拷贝的句柄。该拷贝初始时与窗口菜单相同但可以被修改。
如果此参数为TRUEGetSystemMenu重置窗口菜单到缺省状态。如果存在先前的窗口菜单将被销毁。
</param>
<returns>如果参数bRevert为FALSE返回值是窗口菜单的拷贝的句柄如果参数bRevert为TRUE返回值是NULL。</returns>
</member>
<member name="M:WinAPI.User32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
从指定菜单删除一个菜单项或分离一个子菜单。
备注只要一个菜单被修改无论它是否在显示窗口里应用程序都必须调用函数DrawMenuBar。
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="hMenu">将被修改的菜单的句柄。</param>
<param name="nPosition">指定将被删除的菜单项其含义由参数wFlags决定。</param>
<param name="wFlags"></param>
<returns></returns>
<returns>如果函数调用成功返回非零值如果函数调用失败返回值是零。若想获得更多的错误信息请调用GetLastError函数。</returns>
</member>
<member name="M:WinAPI.User32.SetForegroundWindow(System.IntPtr)">
<summary>
设置前台窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5268,7 +5291,7 @@
<summary>
获得当前活动窗体
</summary>
<returns></returns>
<returns>活动窗口的句柄。如没有窗口处于活动状态或处于活动状态的窗口非当前线程创建,则返回零。</returns>
</member>
<member name="M:WinAPI.User32.SetActiveWindow(System.IntPtr)">
<summary>
@ -5312,7 +5335,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5322,7 +5345,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5332,7 +5355,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.UInt32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="Msg"></param>
@ -5361,14 +5384,14 @@
</member>
<member name="M:WinAPI.User32.LoadCursorFromFile(System.String)">
<summary>
从文件中载入指针
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindowVisible(System.IntPtr)">
<summary>
判断窗口是否可见
</summary>
<param name="hwnd"></param>
<returns></returns>
@ -5410,7 +5433,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowLong(System.IntPtr,System.Int32)">
<summary>
获取指定窗口的有关信息也可用于获取窗口内存中指定偏移的32位度整型值。
</summary>
<param name="hWnd"></param>
<param name="dwStyle"></param>
@ -5418,14 +5441,14 @@
</member>
<member name="M:WinAPI.User32.GetDC(System.IntPtr)">
<summary>
检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.ReleaseDC(System.IntPtr,System.IntPtr)">
<summary>
释放设备上下文环境DC供其他应用程序使用。函数的效果与设备上下文环境类型有关。它只释放公用的和设备上下文环境对于类或私有的则无效。
</summary>
<param name="hwnd"></param>
<param name="hdc"></param>
@ -5433,7 +5456,7 @@
</member>
<member name="M:WinAPI.User32.GetClientRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
获取窗口客户区的大小。注意一下:窗口的客户区为窗口中除标题栏、菜单栏之外的地方。
</summary>
<param name="hwnd"></param>
<param name="rect"></param>
@ -5441,7 +5464,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
</summary>
<param name="hWnd"></param>
<param name="rect"></param>
@ -5449,7 +5472,7 @@
</member>
<member name="M:WinAPI.User32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,System.Drawing.Point@,System.Drawing.Size@,System.IntPtr,System.Drawing.Point@,System.Int32,WinAPI.Struct.BLENDFUNCTION@,System.Int32)">
<summary>
更新一个分层窗口的位置,大小,形状,内容和半透明度
</summary>
<param name="hwnd"></param>
<param name="hdcDst"></param>
@ -5462,20 +5485,10 @@
<param name="dwFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,WinAPI.Struct.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
@ -5488,7 +5501,8 @@
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)">
<summary>
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd"></param>
<param name="hWndInsertAfter"></param>

View File

@ -5707,55 +5707,6 @@
Specified WM_THEMECHANGED enumeration value.
</summary>
</member>
<member name="M:ryControls.Win32API.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.FindWindowEx(System.IntPtr,System.IntPtr,System.String,System.String)">
<summary>
The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
</summary>
<param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
<param name="hwndChildAfter">Handle to a child window.</param>
<param name="lpszClass">Specifies class name.</param>
<param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
<returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.InvalidateRect(System.IntPtr,System.Drawing.Rectangle@,System.Boolean)">
<summary>
The InvalidateRect function adds a rectangle to the specified window's update region.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Rectangle coordinates.</param>
<param name="bErase">Erase state.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.ValidateRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Validation rectangle coordinates.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,ryControls.Win32API.User32.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
<param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
<param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
<param name="Width">Specifies the new width of the window, in pixels.</param>
<param name="Height">Specifies the new height of the window, in pixels.</param>
<param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
<returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
</member>
<member name="T:ryControls.NodeItem">
<summary>

View File

@ -5118,14 +5118,14 @@
</member>
<member name="M:WinAPI.GDI32.DeleteObject(System.IntPtr)">
<summary>
删除一个逻辑笔、画笔、字体、位图、区域或者调色板,释放所有与该对象有关的系统资源,在对象被删除之后,指定的句柄也就失效了。
</summary>
<param name="hObject"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.SelectObject(System.IntPtr,System.IntPtr)">
<summary>
选择一对象到指定的设备上下文环境中,该新对象替换先前的相同类型的对象。
</summary>
<param name="hdc"></param>
<param name="hgdiobj"></param>
@ -5133,14 +5133,14 @@
</member>
<member name="M:WinAPI.GDI32.CreateCompatibleDC(System.IntPtr)">
<summary>
创建一个与指定设备兼容的内存设备上下文环境DC
</summary>
<param name="hdc"></param>
<returns></returns>
</member>
<member name="M:WinAPI.GDI32.CreateDC(System.String,System.String,System.String,System.IntPtr)">
<summary>
为一个设备创建设备上下文环境。
</summary>
<param name="driverName"></param>
<param name="deviceName"></param>
@ -5150,7 +5150,7 @@
</member>
<member name="M:WinAPI.GDI32.DeleteDC(System.IntPtr)">
<summary>
删除指定的设备上下文环境Dc
</summary>
<param name="dc"></param>
<returns></returns>
@ -5182,7 +5182,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowDC(System.IntPtr)">
<summary>
返回hWnd参数所指定的窗口的设备环境。
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5201,7 +5201,9 @@
</member>
<member name="M:WinAPI.User32.CallWindowProc(System.IntPtr,System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
将消息信息传送给指定的窗口过程的函数。使用函数CallWindowsProc可进行窗口子分类。
通常来说,同一类的所有窗口共享一个窗口过程。子类是一个窗口或者相同类的一套窗口,
在其消息被传送到该类的窗口过程之前,这些消息是由另一个窗口过程进行解释和处理的。
</summary>
<param name="lpPrevWndFunc"></param>
<param name="hwnd"></param>
@ -5212,16 +5214,25 @@
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.IntPtr)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hwnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetParent(System.IntPtr,System.IntPtr)">
<summary>
设置弹出式窗口,层叠窗口或子窗口的父窗口
</summary>
<param name="hwndChild"></param>
<param name="hwndParent"></param>
@ -5229,31 +5240,43 @@
</member>
<member name="M:WinAPI.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
获得一个指定子窗口的父窗口句柄
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Int32)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd"></param>
<param name="bRevert"></param>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作</param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.GetSystemMenu(System.IntPtr,System.Boolean)">
<summary>
获取系统菜单的句柄
</summary>
<param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
<param name="bRevert">标志位,指定将执行的操作。
如果此参数为FALSEGetSystemMenu返回当前使用窗口菜单的拷贝的句柄。该拷贝初始时与窗口菜单相同但可以被修改。
如果此参数为TRUEGetSystemMenu重置窗口菜单到缺省状态。如果存在先前的窗口菜单将被销毁。
</param>
<returns>如果参数bRevert为FALSE返回值是窗口菜单的拷贝的句柄如果参数bRevert为TRUE返回值是NULL。</returns>
</member>
<member name="M:WinAPI.User32.RemoveMenu(System.Int32,System.Int32,System.Int32)">
<summary>
从指定菜单删除一个菜单项或分离一个子菜单。
备注只要一个菜单被修改无论它是否在显示窗口里应用程序都必须调用函数DrawMenuBar。
</summary>
<param name="hMenu"></param>
<param name="nPosition"></param>
<param name="hMenu">将被修改的菜单的句柄。</param>
<param name="nPosition">指定将被删除的菜单项其含义由参数wFlags决定。</param>
<param name="wFlags"></param>
<returns></returns>
<returns>如果函数调用成功返回非零值如果函数调用失败返回值是零。若想获得更多的错误信息请调用GetLastError函数。</returns>
</member>
<member name="M:WinAPI.User32.SetForegroundWindow(System.IntPtr)">
<summary>
设置前台窗口
</summary>
<param name="hWnd"></param>
<returns></returns>
@ -5268,7 +5291,7 @@
<summary>
获得当前活动窗体
</summary>
<returns></returns>
<returns>活动窗口的句柄。如没有窗口处于活动状态或处于活动状态的窗口非当前线程创建,则返回零。</returns>
</member>
<member name="M:WinAPI.User32.SetActiveWindow(System.IntPtr)">
<summary>
@ -5312,7 +5335,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5322,7 +5345,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.Int32,System.IntPtr,System.IntPtr)">
<summary>
发送消息
</summary>
<param name="hwnd"></param>
<param name="wMsg"></param>
@ -5332,7 +5355,7 @@
</member>
<member name="M:WinAPI.User32.SendMessage(System.IntPtr,System.UInt32,System.Int32,System.Int32)">
<summary>
发送消息
</summary>
<param name="hWnd"></param>
<param name="Msg"></param>
@ -5361,14 +5384,14 @@
</member>
<member name="M:WinAPI.User32.LoadCursorFromFile(System.String)">
<summary>
从文件中载入指针
</summary>
<param name="filename"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.IsWindowVisible(System.IntPtr)">
<summary>
判断窗口是否可见
</summary>
<param name="hwnd"></param>
<returns></returns>
@ -5410,7 +5433,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowLong(System.IntPtr,System.Int32)">
<summary>
获取指定窗口的有关信息也可用于获取窗口内存中指定偏移的32位度整型值。
</summary>
<param name="hWnd"></param>
<param name="dwStyle"></param>
@ -5418,14 +5441,14 @@
</member>
<member name="M:WinAPI.User32.GetDC(System.IntPtr)">
<summary>
检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。
</summary>
<param name="hwnd"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.ReleaseDC(System.IntPtr,System.IntPtr)">
<summary>
释放设备上下文环境DC供其他应用程序使用。函数的效果与设备上下文环境类型有关。它只释放公用的和设备上下文环境对于类或私有的则无效。
</summary>
<param name="hwnd"></param>
<param name="hdc"></param>
@ -5433,7 +5456,7 @@
</member>
<member name="M:WinAPI.User32.GetClientRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
获取窗口客户区的大小。注意一下:窗口的客户区为窗口中除标题栏、菜单栏之外的地方。
</summary>
<param name="hwnd"></param>
<param name="rect"></param>
@ -5441,7 +5464,7 @@
</member>
<member name="M:WinAPI.User32.GetWindowRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
</summary>
<param name="hWnd"></param>
<param name="rect"></param>
@ -5449,7 +5472,7 @@
</member>
<member name="M:WinAPI.User32.UpdateLayeredWindow(System.IntPtr,System.IntPtr,System.Drawing.Point@,System.Drawing.Size@,System.IntPtr,System.Drawing.Point@,System.Int32,WinAPI.Struct.BLENDFUNCTION@,System.Int32)">
<summary>
更新一个分层窗口的位置,大小,形状,内容和半透明度
</summary>
<param name="hwnd"></param>
<param name="hdcDst"></param>
@ -5462,20 +5485,10 @@
<param name="dwFlags"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowLong(System.IntPtr,System.Int32,System.Int32)">
<summary>
</summary>
<param name="hWnd"></param>
<param name="nIndex"></param>
<param name="dwNewLong"></param>
<returns></returns>
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,WinAPI.Struct.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
@ -5488,7 +5501,8 @@
</member>
<member name="M:WinAPI.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,System.UInt32)">
<summary>
改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
</summary>
<param name="hWnd"></param>
<param name="hWndInsertAfter"></param>

View File

@ -5707,55 +5707,6 @@
Specified WM_THEMECHANGED enumeration value.
</summary>
</member>
<member name="M:ryControls.Win32API.User32.GetParent(System.IntPtr)">
<summary>
The GetParent function retrieves a handle to the specified window's parent or owner.
</summary>
<param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
<returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.FindWindowEx(System.IntPtr,System.IntPtr,System.String,System.String)">
<summary>
The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
</summary>
<param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
<param name="hwndChildAfter">Handle to a child window.</param>
<param name="lpszClass">Specifies class name.</param>
<param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
<returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
</member>
<member name="M:ryControls.Win32API.User32.InvalidateRect(System.IntPtr,System.Drawing.Rectangle@,System.Boolean)">
<summary>
The InvalidateRect function adds a rectangle to the specified window's update region.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Rectangle coordinates.</param>
<param name="bErase">Erase state.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.ValidateRect(System.IntPtr,System.Drawing.Rectangle@)">
<summary>
The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
</summary>
<param name="hwnd">Handle to window.</param>
<param name="rect">Validation rectangle coordinates.</param>
<returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
</member>
<member name="M:ryControls.Win32API.User32.SetWindowPos(System.IntPtr,System.IntPtr,System.Int32,System.Int32,System.Int32,System.Int32,ryControls.Win32API.User32.FlagsSetWindowPos)">
<summary>
Changes the size, position, and Z order of a child, pop-up, or top-level window.
These windows are ordered according to their appearance on the screen.
The topmost window receives the highest rank and is the first window in the Z order.
</summary>
<param name="hWnd">A handle to the window.</param>
<param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
<param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
<param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
<param name="Width">Specifies the new width of the window, in pixels.</param>
<param name="Height">Specifies the new height of the window, in pixels.</param>
<param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
<returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
</member>
<member name="T:ryControls.NodeItem">
<summary>

View File

@ -1,4 +1,10 @@
### 2021-02-27更新
### 2021-02-28更新
------
#### ryControls V2.1.2102.2801
- *.[新增]新增部分WinAPI的注释。
- *.[修复]修复Gdu.WinformUI在开发环境中有时无法拖动修改窗体大小的BUG。
### 2021-02-27更新
------
#### ryControls V2.1.2102.2701
- *.[新增]按钮的渐变属性支持全局定义。

View File

@ -12,14 +12,14 @@ namespace WinAPI
public class GDI32
{
/// <summary>
///
/// 删除一个逻辑笔、画笔、字体、位图、区域或者调色板,释放所有与该对象有关的系统资源,在对象被删除之后,指定的句柄也就失效了。
/// </summary>
/// <param name="hObject"></param>
/// <returns></returns>
[DllImport("gdi32")]
public static extern bool DeleteObject(IntPtr hObject);
/// <summary>
///
/// 选择一对象到指定的设备上下文环境中,该新对象替换先前的相同类型的对象。
/// </summary>
/// <param name="hdc"></param>
/// <param name="hgdiobj"></param>
@ -27,14 +27,14 @@ namespace WinAPI
[DllImport("gdi32")]
public static extern IntPtr SelectObject(IntPtr hdc, IntPtr hgdiobj);
/// <summary>
///
/// 创建一个与指定设备兼容的内存设备上下文环境DC
/// </summary>
/// <param name="hdc"></param>
/// <returns></returns>
[DllImport("gdi32", SetLastError = true)]
public static extern IntPtr CreateCompatibleDC(IntPtr hdc);
/// <summary>
///
/// 为一个设备创建设备上下文环境。
/// </summary>
/// <param name="driverName"></param>
/// <param name="deviceName"></param>
@ -48,7 +48,7 @@ namespace WinAPI
String output,
IntPtr lpInitData);
/// <summary>
///
/// 删除指定的设备上下文环境Dc
/// </summary>
/// <param name="dc"></param>
/// <returns></returns>

View File

@ -34,7 +34,7 @@ namespace WinAPI
[DllImport("user32.dll", EntryPoint = "keybd_event", SetLastError = true)]
public static extern void keybd_event(Keys bVk, byte bScan, uint dwFlags, uint dwExtraInfo);
/// <summary>
///
/// 返回hWnd参数所指定的窗口的设备环境。
/// </summary>
/// <param name="hWnd"></param>
/// <returns></returns>
@ -53,7 +53,9 @@ namespace WinAPI
[DllImport("User32.dll", CharSet = CharSet.Auto)]
public static extern bool MoveWindow(IntPtr hWnd, int x, int y, int width, int height, bool repaint);
/// <summary>
///
/// 将消息信息传送给指定的窗口过程的函数。使用函数CallWindowsProc可进行窗口子分类。
/// 通常来说,同一类的所有窗口共享一个窗口过程。子类是一个窗口或者相同类的一套窗口,
/// 在其消息被传送到该类的窗口过程之前,这些消息是由另一个窗口过程进行解释和处理的。
/// </summary>
/// <param name="lpPrevWndFunc"></param>
/// <param name="hwnd"></param>
@ -64,7 +66,7 @@ namespace WinAPI
[DllImport("User32.dll")]
public extern static IntPtr CallWindowProc(IntPtr lpPrevWndFunc, IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
/// <summary>
///
/// 用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
/// </summary>
/// <param name="hwnd"></param>
/// <param name="nIndex"></param>
@ -72,9 +74,20 @@ namespace WinAPI
/// <returns></returns>
[DllImport("User32.dll")]
public static extern IntPtr SetWindowLong(IntPtr hwnd, int nIndex, IntPtr dwNewLong);
/// <summary>
///
/// 用来改变指定窗口的属性函数也将指定的一个32位值设置在窗口的额外存储空间的指定偏移位置。
/// </summary>
/// <param name="hWnd"></param>
/// <param name="nIndex"></param>
/// <param name="dwNewLong"></param>
/// <returns></returns>
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern uint SetWindowLong(
IntPtr hWnd,
int nIndex,
int dwNewLong);
/// <summary>
/// 设置弹出式窗口,层叠窗口或子窗口的父窗口
/// </summary>
/// <param name="hwndChild"></param>
/// <param name="hwndParent"></param>
@ -83,31 +96,43 @@ namespace WinAPI
public static extern IntPtr SetParent(IntPtr hwndChild, IntPtr hwndParent);
/// <summary>
/// The GetParent function retrieves a handle to the specified window's parent or owner.
/// 获得一个指定子窗口的父窗口句柄
/// </summary>
/// <param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
/// <returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern IntPtr GetParent(IntPtr hwnd);
/// <summary>
///
/// 获取系统菜单的句柄
/// </summary>
/// <param name="hwnd"></param>
/// <param name="bRevert"></param>
/// <param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
/// <param name="bRevert">标志位,指定将执行的操作</param>
/// <returns></returns>
[DllImport("USER32.DLL")]
public static extern int GetSystemMenu(IntPtr hwnd, int bRevert);
/// <summary>
///
/// 获取系统菜单的句柄
/// </summary>
/// <param name="hMenu"></param>
/// <param name="nPosition"></param>
/// <param name="hwnd">拥有窗口菜单拷贝的窗口的句柄</param>
/// <param name="bRevert">标志位,指定将执行的操作。
/// 如果此参数为FALSEGetSystemMenu返回当前使用窗口菜单的拷贝的句柄。该拷贝初始时与窗口菜单相同但可以被修改。
/// 如果此参数为TRUEGetSystemMenu重置窗口菜单到缺省状态。如果存在先前的窗口菜单将被销毁。
/// </param>
/// <returns>如果参数bRevert为FALSE返回值是窗口菜单的拷贝的句柄如果参数bRevert为TRUE返回值是NULL。</returns>
[DllImport("USER32.DLL")]
public static extern int GetSystemMenu(IntPtr hwnd, bool bRevert);
/// <summary>
/// 从指定菜单删除一个菜单项或分离一个子菜单。
/// 备注只要一个菜单被修改无论它是否在显示窗口里应用程序都必须调用函数DrawMenuBar。
/// </summary>
/// <param name="hMenu">将被修改的菜单的句柄。</param>
/// <param name="nPosition">指定将被删除的菜单项其含义由参数wFlags决定。</param>
/// <param name="wFlags"></param>
/// <returns></returns>
/// <returns>如果函数调用成功返回非零值如果函数调用失败返回值是零。若想获得更多的错误信息请调用GetLastError函数。</returns>
[DllImport("USER32.DLL")]
public static extern int RemoveMenu(int hMenu, int nPosition, int wFlags);
/// <summary>
///
/// 设置前台窗口
/// </summary>
/// <param name="hWnd"></param>
/// <returns></returns>
@ -122,7 +147,7 @@ namespace WinAPI
/// <summary>
/// 获得当前活动窗体
/// </summary>
/// <returns></returns>
/// <returns>活动窗口的句柄。如没有窗口处于活动状态或处于活动状态的窗口非当前线程创建,则返回零。</returns>
[DllImport("user32.dll")]
public static extern IntPtr GetActiveWindow();//获得当前活动窗体
/// <summary>
@ -172,7 +197,7 @@ namespace WinAPI
int nMaxCount //最大值
);
/// <summary>
///
/// 发送消息
/// </summary>
/// <param name="hwnd"></param>
/// <param name="wMsg"></param>
@ -186,7 +211,7 @@ namespace WinAPI
int wParam,
int lParam);
/// <summary>
///
/// 发送消息
/// </summary>
/// <param name="hwnd"></param>
/// <param name="wMsg"></param>
@ -200,7 +225,7 @@ namespace WinAPI
IntPtr wParam,
IntPtr lParam);
/// <summary>
///
/// 发送消息
/// </summary>
/// <param name="hWnd"></param>
/// <param name="Msg"></param>
@ -229,14 +254,14 @@ namespace WinAPI
[DllImport("user32.dll")]
public static extern void PostMessage(IntPtr hWnd, int msg, int wParam, ref COPYDATASTRUCT IParam);
/// <summary>
///
/// 从文件中载入指针
/// </summary>
/// <param name="filename"></param>
/// <returns></returns>
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern IntPtr LoadCursorFromFile(string filename);
/// <summary>
///
/// 判断窗口是否可见
/// </summary>
/// <param name="hwnd"></param>
/// <returns></returns>
@ -291,7 +316,7 @@ namespace WinAPI
IntPtr hwnd,
ref Rectangle rect);
/// <summary>
///
/// 获取指定窗口的有关信息也可用于获取窗口内存中指定偏移的32位度整型值。
/// </summary>
/// <param name="hWnd"></param>
/// <param name="dwStyle"></param>
@ -301,7 +326,7 @@ namespace WinAPI
IntPtr hWnd,
int dwStyle);
/// <summary>
///
/// 检索一指定窗口的客户区域或整个屏幕的显示设备上下文环境的句柄以后可以在GDI函数中使用该句柄来在设备上下文环境中绘图。
/// </summary>
/// <param name="hwnd"></param>
/// <returns></returns>
@ -309,7 +334,7 @@ namespace WinAPI
public static extern IntPtr GetDC(
IntPtr hwnd);
/// <summary>
///
/// 释放设备上下文环境DC供其他应用程序使用。函数的效果与设备上下文环境类型有关。它只释放公用的和设备上下文环境对于类或私有的则无效。
/// </summary>
/// <param name="hwnd"></param>
/// <param name="hdc"></param>
@ -327,7 +352,7 @@ namespace WinAPI
// IntPtr hwnd,
// int nBar);
/// <summary>
///
/// 获取窗口客户区的大小。注意一下:窗口的客户区为窗口中除标题栏、菜单栏之外的地方。
/// </summary>
/// <param name="hwnd"></param>
/// <param name="rect"></param>
@ -335,9 +360,9 @@ namespace WinAPI
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern int GetClientRect(
IntPtr hwnd,
[In, Out] ref Rectangle rect);
out Rectangle rect);
/// <summary>
///
/// 返回指定窗口的边框矩形的尺寸。该尺寸以相对于屏幕坐标左上角的屏幕坐标给出。
/// </summary>
/// <param name="hWnd"></param>
/// <param name="rect"></param>
@ -347,7 +372,7 @@ namespace WinAPI
IntPtr hWnd,
out Rectangle rect);
/// <summary>
///
/// 更新一个分层窗口的位置,大小,形状,内容和半透明度
/// </summary>
/// <param name="hwnd"></param>
/// <param name="hdcDst"></param>
@ -361,23 +386,10 @@ namespace WinAPI
/// <returns></returns>
[DllImport("user32", ExactSpelling = true, SetLastError = true)]
public static extern bool UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst, ref Point pptDst, ref Size psize, IntPtr hdcSrc, ref Point pprSrc, Int32 crKey, ref BLENDFUNCTION pblend, Int32 dwFlags);
/// <summary>
///
/// </summary>
/// <param name="hWnd"></param>
/// <param name="nIndex"></param>
/// <param name="dwNewLong"></param>
/// <returns></returns>
[DllImport("user32", CharSet = CharSet.Auto)]
public static extern uint SetWindowLong(
IntPtr hWnd,
int nIndex,
int dwNewLong);
/// <summary>
/// Changes the size, position, and Z order of a child, pop-up, or top-level window.
/// These windows are ordered according to their appearance on the screen.
/// The topmost window receives the highest rank and is the first window in the Z order.
/// 改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
/// 子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
/// </summary>
/// <param name="hWnd">A handle to the window.</param>
/// <param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
@ -397,7 +409,8 @@ namespace WinAPI
int Height,
FlagsSetWindowPos flags);
/// <summary>
///
/// 改变一个子窗口弹出式窗口或顶层窗口的尺寸位置和Z序。
/// 子窗口弹出式窗口及顶层窗口根据它们在屏幕上出现的顺序排序、顶层窗口设置的级别最高并且被设置为Z序的第一个窗口。
/// </summary>
/// <param name="hWnd"></param>
/// <param name="hWndInsertAfter"></param>

Binary file not shown.

Binary file not shown.

View File

@ -1036,7 +1036,7 @@ namespace MGdu.WinFormUI
private void SetFormRegion()
{
if (this.DesignMode) { return; }
//if (this.DesignMode) { return; }
if (base.Region != null)
base.Region.Dispose();
@ -1145,7 +1145,7 @@ namespace MGdu.WinFormUI
private void DrawFormBorder(Graphics g)
{
if (this.DesignMode) { return; }
//if (this.DesignMode) { return; }
int width = BorderWidth;
Rectangle rect = ClientRectangle;
@ -1201,7 +1201,7 @@ namespace MGdu.WinFormUI
/// </summary>
private void DrawInsetClientRect(Graphics g)
{
if (this.DesignMode) { return; }
//if (this.DesignMode) { return; }
int x = BorderWidth;
int y = BorderWidth + CaptionHeight;
int w = ClientSize.Width - BorderWidth * 2;

View File

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
// 方法是按如下所示使用“*”: :
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.1.2102.2701")]
[assembly: AssemblyFileVersion("2.1.2102.2701")]
[assembly: AssemblyVersion("2.1.2102.2801")]
[assembly: AssemblyFileVersion("2.1.2102.2801")]

View File

@ -8,30 +8,6 @@ namespace ryControls.Win32API
internal partial class User32
{
#region Struct
[StructLayout(LayoutKind.Sequential)]
internal struct RECT
{
public int left;
public int top;
public int right;
public int bottom;
public override string ToString()
{
return "{left=" + left.ToString() + ", " + "top=" + top.ToString() + ", " +
"right=" + right.ToString() + ", " + "bottom=" + bottom.ToString() + "}";
}
}
[StructLayout(LayoutKind.Sequential)]
internal struct BLENDFUNCTION
{
public byte BlendOp;
public byte BlendFlags;
public byte SourceConstantAlpha;
public byte AlphaFormat;
}
#region Tab Control Notification Structures
//[StructLayout(LayoutKind.Sequential)]
@ -104,190 +80,12 @@ namespace ryControls.Win32API
#endregion
#region UnmanagedMethods
[DllImport("gdi32")]
internal static extern bool DeleteObject(IntPtr hObject);
[DllImport("gdi32")]
internal static extern IntPtr SelectObject(IntPtr hdc, IntPtr hgdiobj);
[DllImport("gdi32", SetLastError = true)]
internal static extern IntPtr CreateCompatibleDC(IntPtr hdc);
[DllImport("gdi32")]
internal static extern IntPtr CreateDC(
String driverName,
String deviceName,
String output,
IntPtr lpInitData);
[DllImport("gdi32")]
internal static extern bool DeleteDC(
IntPtr dc);
[DllImport("uxtheme", ExactSpelling = true, CharSet = CharSet.Unicode)]
internal static extern Int32 SetWindowTheme(
IntPtr hWnd,
String textSubAppName,
String textSubIdList);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern IntPtr SetParent(IntPtr hwndChild, IntPtr hwndParent);
/// <summary>
/// The GetParent function retrieves a handle to the specified window's parent or owner.
/// </summary>
/// <param name="hwnd">Handle to the window whose parent window handle is to be retrieved.</param>
/// <returns>If the window is a child window, the return value is a handle to the parent window. If the window is a top-level window, the return value is a handle to the owner window. If the window is a top-level unowned window or if the function fails, the return value is NULL.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern IntPtr GetParent(IntPtr hwnd);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int SendMessage(
IntPtr hwnd,
int wMsg,
int wParam,
int lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int SendMessage(
IntPtr hwnd,
int wMsg,
IntPtr wParam,
IntPtr lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int SendMessage(
IntPtr hwnd,
int tMsg,
IntPtr wParam,
ref TCHITTESTINFO lParam);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern IntPtr LoadCursorFromFile(string filename);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern bool IsWindowVisible(IntPtr hwnd);
/// <summary>
/// The FindWindowEx function retrieves a handle to a window whose class name and window name match the specified strings. The function searches child windows, beginning with the one following the specified child window.
/// </summary>
/// <param name="hwndParent">Handle to the parent window whose child windows are to be searched.</param>
/// <param name="hwndChildAfter">Handle to a child window.</param>
/// <param name="lpszClass">Specifies class name.</param>
/// <param name="lpszWindow">Pointer to a null-terminated string that specifies the window name (the window's title).</param>
/// <returns>If the function succeeds, the return value is a handle to the window that has the specified class and window names.If the function fails, the return value is NULL.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern IntPtr FindWindowEx(
IntPtr hwndParent,
IntPtr hwndChildAfter,
[MarshalAs(UnmanagedType.LPTStr)]
string lpszClass,
[MarshalAs(UnmanagedType.LPTStr)]
string lpszWindow);
/// <summary>
/// The InvalidateRect function adds a rectangle to the specified window's update region.
/// </summary>
/// <param name="hwnd">Handle to window.</param>
/// <param name="rect">Rectangle coordinates.</param>
/// <param name="bErase">Erase state.</param>
/// <returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern bool InvalidateRect(
IntPtr hwnd,
ref Rectangle rect,
bool bErase);
/// <summary>
/// The ValidateRect function validates the client area within a rectangle by removing the rectangle from the update region of the specified window.
/// </summary>
/// <param name="hwnd">Handle to window.</param>
/// <param name="rect">Validation rectangle coordinates.</param>
/// <returns>If the function succeeds, the return value is true.If the function fails, the return value is false.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern bool ValidateRect(
IntPtr hwnd,
ref Rectangle rect);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int GetWindowLong(
IntPtr hWnd,
int dwStyle);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern IntPtr GetDC(
IntPtr hwnd);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int ReleaseDC(
IntPtr hwnd,
IntPtr hdc);
//[DllImport("user32", SetLastError = false)]
//internal static extern IntPtr GetDesktopWindow();
//[DllImport("user32", CharSet = CharSet.Auto)]
//internal static extern int GetScrollPos(
// IntPtr hwnd,
// int nBar);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int GetClientRect(
IntPtr hwnd,
ref RECT rc);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int GetClientRect(
IntPtr hwnd,
[In, Out] ref Rectangle rect);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern bool GetWindowRect(
IntPtr hWnd,
[In, Out] ref Rectangle rect);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int GetWindowRect(
IntPtr hwnd,
ref RECT rc);
[DllImport("user32", ExactSpelling = true, SetLastError = true)]
internal static extern bool UpdateLayeredWindow(IntPtr hwnd, IntPtr hdcDst, ref Point pptDst, ref Size psize, IntPtr hdcSrc, ref Point pprSrc, Int32 crKey, ref BLENDFUNCTION pblend, Int32 dwFlags);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern uint SetWindowLong(
IntPtr hWnd,
int nIndex,
int dwNewLong);
/// <summary>
/// Changes the size, position, and Z order of a child, pop-up, or top-level window.
/// These windows are ordered according to their appearance on the screen.
/// The topmost window receives the highest rank and is the first window in the Z order.
/// </summary>
/// <param name="hWnd">A handle to the window.</param>
/// <param name="hWndAfter">A handle to the window to precede the positioned window in the Z order. This parameter must be a window handle or one of the following values.</param>
/// <param name="X">Specifies the new position of the left side of the window, in client coordinates.</param>
/// <param name="Y">Specifies the new position of the top of the window, in client coordinates.</param>
/// <param name="Width">Specifies the new width of the window, in pixels.</param>
/// <param name="Height">Specifies the new height of the window, in pixels.</param>
/// <param name="flags">Specifies the window sizing and positioning flags. This parameter can be a combination of the following values.</param>
/// <returns>If the function succeeds, the return value is nonzero, if the function fails, the return value is zero.</returns>
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern int SetWindowPos(
IntPtr hWnd,
IntPtr hWndAfter,
int X,
int Y,
int Width,
int Height,
FlagsSetWindowPos flags);
[DllImport("user32", CharSet = CharSet.Auto)]
internal static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int X,
int Y, int cx, int cy, uint uFlags);
#endregion
}
}