Share via


CreateUpDownControl (Windows Embedded CE 6.0)

1/6/2010

This function creates an up-down control.

Syntax

HWND CreateUpDownControl(
  DWORD dwStyle, 
  int x, 
  int y, 
  int cx, 
  int cy, 
  HWND hParent, 
  int nID, 
  HINSTANCE hInst, 
  HWND hBuddy, 
  int nUpper, 
  int nLower, 
  int nPos 
);

Parameters

  • dwStyle
    Specifies the window styles for the control. This parameter should include the WS_CHILD, WS_BORDER, and WS_VISIBLE styles, and it may include any of the window styles specific to the up-down control.
  • x
    Horizontal coordinate, in client coordinates, of the upper-left corner of the control.
  • y
    Vertical coordinate, in client coordinates, of the upper-left corner of the control.
  • cx
    Width, in pixels, of the up-down control.
  • cy
    Height, in pixels, of the up-down control.
  • hParent
    Handle to the parent window of the up-down control.
  • nID
    Identifier for the up-down control.
  • hInst
    Handle to the module instance of the application creating the up-down control.
  • hBuddy
    Handle to the window associated with the edit up-down control. An edit control is the only up-down control that has a buddy window. If this parameter is NULL, the control has no buddy window.
  • nUpper
    Upper limit (range) of the up-down control.
  • nLower
    Lower limit (range) of the up-down control.
  • nPos
    Position of the control.

Return Value

The window handle to the up-down control indicates success. NULL indicates failure.

Remarks

The only buddy window for up-down controls is an edit control.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Up-Down Controls Functions
SetDlgItemInt