@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The OffsetRgn API !!!!C# Signature: [DllImport("gdi32.dll")] static extern int OffsetRgn(IntPtr hrgn, int nXOffset, int nYOffset); !!!!User-Defined Types: None. !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Public Sub OffsetHeader(ByRef tmpForm As Form) With tmpForm If .BorderStyle <> 0 Then Dim xoff As Long, yoff As Long .ScaleMode = vbPixels xoff = (.ScaleX(.Width, vbTwips, vbPixels) - .ScaleWidth) / 2 yoff = .ScaleY(.Height, vbTwips, vbPixels) - .ScaleHeight - xoff Call OffsetRgn(hndRegion, xoff, yoff) End If End With End Sub !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: OffsetRgn@msdn on MSDN
Edit gdi32.offsetrgn
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.