次の方法で共有


UpdownView_t::HorzDrawSettings (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

static void HorzDrawSettings(
  DWORD dwStyle,
  int iVersion,
  LPRECT prcBtn,
  BOOL bEnabled,
  BOOL fHasBorder,
  unsigned fUp,
  unsigned fDown,
  int nPos,
  int nUpper,
  int nLower,
  UINT uHot,
  UINT* puLeftFlags, 
  LPRECT prcLeft,
  UINT* puRightFlags,
  LPRECT prcRight
);      

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.
  • puLeftFlags
    [out] Pointer to the style flags for the left 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.

  • prcLeft
    [out] Pointer to the rectangle in which the left arrow is to be drawn.
  • puRightFlags
    [out] Pointer to the style flags for the right 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.

  • prcRight
    [out] Pointer to the rectangle in which the right arrow is to be drawn.

Return Value

None.

Remarks

Windows Embedded CE only calls this method if the UDS_HORZ style is 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