Share via


UpdownView_t::VertDrawSettings (Windows Embedded CE 6.0)

1/6/2010

This method draws an up-down control in a vertical orientation.

Syntax

static void VertDrawSettings(
  DWORD dwStyle,
  int iVersion,
  LPRECT prcBtn,
  BOOL bEnabled,
  BOOL fHasBorder,
  unsigned fUp,
  unsigned fDown,
  int nPos,
  int nUpper,
  int nLower,
  UINT uHot,
  UINT* puUpFlags, 
  LPRECT prcUp,
  UINT* puDownFlags,
  LPRECT prcDown
);      

Parameters

  • dwStyle
    [in] Specifies the style of control. Set this to one or more of the style flags shown in the following table.

    Flag Description

    UDS_HORZ

    Causes the up-down control's arrows to point left and right instead of up and down.

    UDS_ALIGNLEFT

    Positions the up-down control next to the left edge of the buddy window.

    UDS_ALIGNRIGHT

    Positions the up-down control next to the right edge of the buddy window.

    UDS_WRAP

    Causes the position to wrap if it is incremented or decremented beyond the ending or beginning of the range.

  • iVersion
    [in] Specifies the version number of the control to draw.
  • prcBtn
    [out] Pointer to the client rectangle area allocated for the control.
  • bEnabled
    [in] Set to TRUE to enable the control or FALSE to disable it.
  • fHasBorder
    [in] Set to TRUE to give the control a border or FALSE to remove it.
  • fUp
    [in] Set to TRUE to activate the control's up button or FALSE to deactivate it.
  • fDown
    [in] Set to TRUE to activate the control's down button or FALSE to deactivate it.
  • nPos
    [in] Index number to set the current position in the control's range of values.
  • nUpper
    [in] Maximum value for the control's range of values.
  • nLower
    [in] Minimum value for the control's range of values.
  • uHot
    Not supported.
  • puUpFlags
    [out] Pointer to the style flags for the up arrow. Upon return, this parameter contains a combination of the state flags shown in the following table.

    Flag Description

    DFCS_SCROLLLEFT

    Left arrow of scroll bar.

    DFCS_SCROLLRIGHT

    Right arrow of scroll bar.

    DFCS_SCROLLUP

    Up arrow of scroll bar.

    DFCS_SCROLLDOWN

    Down arrow of scroll bar.

    DFCS_INACTIVE

    The button does not accept user input.

    DFCS_PUSHED

    The button is pushed.

  • prcUp
    [out] Pointer to the rectangle in which the up arrow is to be drawn.
  • puDownFlags
    [out] Pointer to the style flags for the down arrow. Upon return, this parameter contains a combination of the state flags shown in the following table.

    Flag Description

    DFCS_SCROLLLEFT

    Left arrow of scroll bar.

    DFCS_SCROLLRIGHT

    Right arrow of scroll bar.

    DFCS_SCROLLUP

    Up arrow of scroll bar.

    DFCS_SCROLLDOWN

    Down arrow of scroll bar.

    DFCS_INACTIVE

    The button does not accept user input.

    DFCS_PUSHED

    The button is pushed.

  • prcDown
    [out] Pointer to the rectangle in which the down arrow is to be drawn.

Return Value

None.

Remarks

Windows Embedded CE only calls this method if the UDS_HORZ style is not set in dwStyle.

Within your Windows Embedded CE operating system (OS), the information that this method returns through its parameters is passed to DrawFrameControl with uType set to DFC_SCROLL.

Requirements

Header updownview.hpp
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

UpdownView_t
DrawFrameControl