You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 26, 2023. It is now read-only.
static PInvoke.User32.CreateWindowEx(PInvoke.User32.WindowStylesEx dwExStyle, short lpClassName, string lpWindowName, PInvoke.User32.WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, System.IntPtr hWndParent, System.IntPtr hMenu, System.IntPtr hInstance, System.IntPtr lpParam) -> System.IntPtr
57
58
static PInvoke.User32.CreateWindowEx(PInvoke.User32.WindowStylesEx dwExStyle, short lpClassName, string lpWindowName, PInvoke.User32.WindowStyles dwStyle, int x, int y, int nWidth, int nHeight, System.IntPtr hWndParent, System.IntPtr hMenu, System.IntPtr hInstance, void* lpParam) -> System.IntPtr
/// Calculates the required size of the window rectangle, based on the desired size of the client rectangle.
3325
+
/// The window rectangle can then be passed to the CreateWindowEx function to create a window whose client area
3326
+
/// is the desired size.
3327
+
/// </summary>
3328
+
/// <param name="lpRect">
3329
+
/// A pointer to a RECT structure that contains the coordinates of the top-left and bottom-right corners
3330
+
/// of the desired client area. When the function returns, the structure contains the coordinates of the top-left
3331
+
/// and bottom-right corners of the window to accommodate the desired client area.
3332
+
/// </param>
3333
+
/// <param name="dwStyle">
3334
+
/// The window style of the window whose required size is to be calculated. Note that you cannot specify
3335
+
/// the <see cref="WindowStyles.WS_OVERLAPPED"/> style.</param>
3336
+
/// <param name="bMenu">Indicates whether the window has a menu.</param>
3337
+
/// <param name="dwExStyle">The extended window style of the window whose required size is to be calculated.</param>
3338
+
/// <returns>
3339
+
/// If the function succeeds, the return value is true.
3340
+
/// If the function fails, the return value is false.
3341
+
/// To get extended error information, call GetLastError.
3342
+
/// </returns>
3343
+
/// <remarks>
3344
+
/// <para>
3345
+
/// A client rectangle is the smallest rectangle that completely encloses a client area.
3346
+
/// A window rectangle is the smallest rectangle that completely encloses the window, which includes
3347
+
/// the client area and the nonclient area.
3348
+
/// </para>
3349
+
/// <para>
3350
+
/// The AdjustWindowRectEx function does not add extra space when a menu bar wraps to two or more rows.
3351
+
/// </para>
3352
+
/// <para>
3353
+
/// The AdjustWindowRectEx function does not take the <see cref="WindowStyles.WS_VSCROLL"/> or
3354
+
/// <see cref="WindowStyles.WS_HSCROLL"/> styles into account.
3355
+
/// To account for the scroll bars, call the GetSystemMetrics function with <see cref="SystemMetric.SM_CXVSCROLL"/> or
3356
+
/// <see cref="SystemMetric.SM_CYHSCROLL"/>.
3357
+
/// </para>
3358
+
/// <para>
3359
+
/// This API is not DPI aware, and should not be used if the calling thread is per-monitor DPI aware.
3360
+
/// For the DPI-aware version of this API, see AdjustWindowsRectExForDPI.
3361
+
/// </para>
3362
+
/// </remarks>
3363
+
[DllImport(nameof(User32),SetLastError=true)]
3364
+
[return:MarshalAs(UnmanagedType.Bool)]
3365
+
publicstaticunsafeexternboolAdjustWindowRectEx(
3366
+
RECT*lpRect,
3367
+
WindowStylesdwStyle,
3368
+
[MarshalAs(UnmanagedType.Bool)]boolbMenu,
3369
+
WindowStylesExdwExStyle);
3370
+
3323
3371
/// <summary>
3324
3372
/// The BeginPaint function prepares the specified window for painting and fills a <see cref="PAINTSTRUCT"/> structure with information about the painting.
0 commit comments