Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than user32, prefix the name with the module name and a period.
<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
VB Signature:
Public Declare Function AdjustWindowRectEx Lib "user32" _
(lpRect As RECT, _
ByVal dsStyle As WindowStyles, _
ByVal bMenu As Long, _
ByVal dwEsStyle As WindowStylesEx) As Long
<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
VB Signature:
Public Declare Function AdjustWindowRectEx Lib "user32" _
(lpRect As RECT, _
ByVal dsStyle As WindowStyles, _
ByVal bMenu As Long, _
ByVal dwEsStyle As WindowStylesEx) As Long
RECT lpRect = new RECT(ClientRectangle);
AdjustWindowRectEx(ref lpRect, CreateParams.Style, false, CreateParams.ExStyle);
Use this API in the class from derived Form or Control.
Tips & Tricks:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
Sample Code:
RECT lpRect = new RECT(ClientRectangle);
AdjustWindowRectEx(ref lpRect, CreateParams.Style, false, CreateParams.ExStyle);
Use this API in the class from derived Form or Control.
Alternative Managed API:
Do you know one? Please contribute it!
The AdjustWindowRectEx API
12/30/2020 4:35:39 AM - semihartan-88.235.51.102
The AdjustWindowRectEx API
12/30/2020 4:35:39 AM - semihartan-88.235.51.102
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
6/3/2013 5:41:04 PM - dahminator-75.174.65.168
Defines the possible window style flags in Microsoft's API. These flags can be OR'd together to make more complex styles.
8/10/2018 12:00:38 AM - 94.124.0.19
Specifies the extended window style of a window. Used by CreateWindowEx.
9/30/2018 8:20:24 AM - programmersdigest.de-94.46.66.66
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
6/3/2013 5:41:04 PM - dahminator-75.174.65.168
Defines the possible window style flags in Microsoft's API. These flags can be OR'd together to make more complex styles.
8/10/2018 12:00:38 AM - 94.124.0.19
Specifies the extended window style of a window. Used by CreateWindowEx.
9/30/2018 8:20:24 AM - programmersdigest.de-94.46.66.66
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).