摘要:
WindowsAPI数据类型 C#数据类型BOOL System.Int32BOOLEAN System.Int32BYTE System.UInt16CHAR System.UInt16COLORREF System.UInt32DWORD System.UInt32DWORD32 System.UInt32DWORD64 System.UInt64FLOAT System.FloatHACCEL System.IntPtrHANDLE System.IntPtrHBITMAP System.IntPtrHBRUSH System.IntPtrHCON... 阅读全文
摘要:
首先查看一下WindowsAPI给我们的解释函数功能:该函数改变指定窗口的位置和尺寸。对于顶层窗口,位置和尺寸是相对于屏幕的左上角的:对于子窗口,位置和尺寸是相对于父窗口客户区的左上角坐标的。函数原型:bool MoveWindow(HWND hWnd,int x,int y,int nWidth,int nHeight,bool BRePaint);参数:hWnd:窗口句柄。x:指定窗口的新位置的左边界。Y:指定窗口的新位置的顶部边界。nWidth:指定窗口的新的宽度。nHaight:指定窗口的新的高度。所在位置:user32.dll需要命名空间usingSystem;usingSystem 阅读全文