'updown position minimum maximum
' 设置的最高和最低位置 （范围） up-down 控件。
'  hUDM      : Handle to the UpDown control. (e.g. HWND_FORM1_UPDOWN1)
'  nUpper    : Maximum 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.
'  nLower    : 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.    
Sub FF_UpDown_SetRange (ByVal hUDM As HWND, ByVal nUpper As word, ByVal nLower As word)

    SendMessage hUDM, UDM_SETRANGE, 0, MAKELONG(nUpper, nLower)

End Sub
