---
name: "CreateUpDownControl"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/CreateUpDownControl"
---

# CreateUpDownControl(3w)

## NAME

**CreateUpDownControl** (COMCTL32.16)

## SYNOPSIS

HWND CreateUpDownControl\
  (\
   DWORD     *style*,\
   INT       *x*,\
   INT       *y*,\
   INT       *cx*,\
   INT       *cy*,\
   HWND      *parent*,\
   INT       *id*,\
   HINSTANCE *inst*,\
   HWND      *buddy*,\
   INT       *maxVal*,\
   INT       *minVal*,\
   INT       *curVal*\
  )

## DESCRIPTION

Creates an up-down control.

## PARAMS

*style* **\[In\]**  window styles.

*x* **\[In\]**  horizontal position of the control.

*y* **\[In\]**  vertical position of the control.

*cx* **\[In\]**  with of the control.

*cy* **\[In\]**  height of the control.

*parent* **\[In\]**  handle to the *parent* window.

*id* **\[In\]**  the control's identifier.

*inst* **\[In\]**  handle to the application's module instance.

*buddy* **\[In\]**  handle to the *buddy* window, can be **NULL**.

*maxVal* **\[In\]**  upper limit of the control.

*minVal* **\[In\]**  lower limit of the control.

*curVal* **\[In\]**  current value of the control.

## RETURNS

**Success:** handle to the updown control

**Failure:** **0**

## IMPLEMENTATION

Declared in **"commctrl.h"**.

Implemented in **"dlls/comctl32/commctrl.c"**.

Debug channel **"commctrl"**.
