[DllImport("user32.dll")]
static extern bool AdjustWindowRectEx(ref RECT lpRect, uint dwStyle,
bool bMenu, uint dwExStyle);
<DllImport("user32.dll")> _
Public Function AdjustWindowRectEx(<MarshalAs(UnmanagedType.Struct)>byref lpRect As RECT, _
<MarshalAs(UnmanagedType.U4)>dwStyle As WindowStyles, _
<MarshalAs(UnmanagedType.Bool)>bMenu As Boolean, _
<MarshalAs(UnmanagedType.U4)>dwExStyle As WindowStylesEx) As <MarshalAs(UnmanagedType.Bool)> Boolean
End Function
Public Declare Function AdjustWindowRectEx Lib "user32" _
(lpRect As RECT, _
ByVal dsStyle As WindowStyles, _
ByVal bMenu As Long, _
ByVal dwEsStyle As WindowStylesEx) As Long
None.
Please add some!
RECT lpRect = new RECT(ClientRectangle);
AdjustWindowRectEx(ref lpRect, CreateParams.Style, false, CreateParams.ExStyle);
Use this API in the class from derived Form or Control.
Do you know one? Please contribute it!