UpdownView_t::VertDrawSettings (Windows CE 5.0)

Send Feedback

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

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 Values

None.

Remarks

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

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

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Updownview.hpp.

See Also

UpdownView_t | DrawFrameControl

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.