UDM_SETRANGEUDM_SETRANGE*
*Contents  *Index  *Topic Contents
*Previous Topic: UDM_SETPOS
*Next Topic: UDM_SETRANGE32

UDM_SETRANGE


UDM_SETRANGE 
    wParam = 0; 
    lParam = (LPARAM) MAKELONG((short) nUpper, (short) nLower); 

Sets the minimum and maximum positions (range) for an up-down control.

nUpper and nLower
Maximum position and minimum position for the up-down control. Neither position can be greater than the UD_MAXVAL value or less than the UD_MINVAL value. In addition, the difference between the two positions cannot exceed UD_MAXVAL.

The maximum position can be less than the minimum position. Clicking the up arrow button moves the current position closer to the maximum position, and clicking the down arrow button moves towards the minimum position.


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.