NonClientView_t::CalcClientRectWithVertScrollBars (Windows Embedded CE 6.0)

1/6/2010

This method determines the size of the client rectangle for a window with a vertical scroll bar, given the size of the client rectangle for the window without scroll bars.

Syntax

static void CalcClientRectWithVertScrollBars(
  RECT* lprc,
  DWORD dwExStyle
);

Parameters

  • lprc
    [in, out] Pointer to a RECT structure that on input specifies the bounding rectangle of the client area for a window without scroll bars. On output, the structure contains adjusted values that reflect the width of the vertical scroll bar.
  • dwExStyle
    [in] DWORD that contains an extended window style that affects the size of the client area. The following table shows the possible values.

    Value Description

    WS_EX_CLIENTEDGE

    Specifies that a window has a border with a sunken edge.

    WS_EX_CONTEXTHELP

    Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message.

    WS_EX_CONTROLPARENT

    Allows the user to move among the child windows of the window by pressing TAB.

    WS_EX_DLGMODALFRAME

    Creates a window that has a double border; the window can, optionally, be created with a title bar by specifying the WS_CAPTION style in the dwStyle parameter.

    WS_EX_LEFT

    Creates a window that has generic left-aligned properties. Left alignment is the default.

    WS_EX_LEFTSCROLLBAR

    If the shell language is Hebrew, Arabic, or another language that supports reading order alignment, the vertical scroll bar (if present) is to the left of the client area. For other languages, the style is ignored.

    WS_EX_LTRREADING

    The window text is displayed using left-to-right reading-order properties. A left-to-right reading order is the default.

    WS_EX_MDICHILD

    Creates an MDI child window.

    WS_EX_NOPARENTNOTIFY

    Specifies that a child window created with this style does not send the WM_PARENTNOTIFY message to its parent window when the child window is created or destroyed.

    WS_EX_OVERLAPPEDWINDOW

    Combines the WS_EX_CLIENTEDGE and WS_EX_WINDOWEDGE styles.

    WS_EX_PALETTEWINDOW

    Combines the WS_EX_WINDOWEDGE, WS_EX_TOOLWINDOW, and WS_EX_TOPMOST styles.

    WS_EX_RIGHT

    The window has generic right-aligned properties, which depend on the window class. This style has an effect only if the shell language is Hebrew, Arabic, or another language that supports reading-order alignment; otherwise, the style is ignored.

    WS_EX_RIGHTSCROLLBAR

    The vertical scroll bar is to the right of the client area, if present. This location is the default.

    WS_EX_RTLREADING

    If the shell language is Hebrew, Arabic, or another language that supports reading-order alignment, the window text is displayed using right-to-left reading-order properties. For other languages, the style is ignored.

    WS_EX_STATICEDGE

    Creates a window with a 3-D border style intended to be used for items that do not accept user input.

    WS_EX_TOOLWINDOW

    Creates a tool window; that is, a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window does not appear in the taskbar or in the dialog box that appears when the user presses ALT+TAB. If a tool window has a system menu, its icon is not displayed on the title bar. However, you can display the system menu by right-clicking or by typing ALT+SPACE.

    WS_EX_TOPMOST

    Specifies that a window created with this style should be placed above all non-topmost windows and should stay above those windows, even when the window is deactivated. To add or remove this style, use the SetWindowPos function.

    WS_EX_TRANSPARENT

    Specifies that a window created with this style should not be painted until siblings beneath the window that were created by the same thread have been painted. The window appears transparent because the bits of underlying sibling windows have already been painted.

    To achieve transparency without these restrictions, use the SetWindowRgn function.

    WS_EX_WINDOWEDGE

    Specifies that a window has a border with a raised edge.

Return Value

None.

Requirements

Header nclientview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NonClientView_t
NonClientView_t::CalcClientRectWithHorzScrollBars
NonClientView_t::CalcClientRectWithNoScrollBars
RECT