本帖最后由 chp845 于 2011-05-04 10:08:02 编辑

解决方案 »

  1.   

    对话框中有一个cspincontrol  
    事件为:UDN-DELTAPOS
    有两个cspincontrol 控件!
    ID:IDC_SPIN
    ID:IDC_SPIN
    ------------------------
    什么意思?对话框有一个CSpinButtonCtrl控件,怎么下面又有两个该控件,而且ID号码相同?
      

  2.   

    CSpinButtonCtrl::SetBase  
    See Also  Send Feedback  
     Updated: November 2007Sets the base for a spin button control.  
    int SetBase(
       int nBase 
    );
     Parameters
    nBase
    New base value for the control. It can be 10 for decimal or 16 for hexadecimal. Return Value
    The previous base value if successful, or zero if an invalid base is given. Res
    The base value determines whether the buddy window displays numbers in decimal or hexadecimal digits. Hexadecimal numbers are always unsigned; decimal numbers are signed. 
      

  3.   

    写错了呀!是ID:IDC_SPIN1
    ID:IDC_SPIN2
    怎么获取是哪个控件点击的!
      

  4.   

    自己解决了!!原来封装在NMHDR这个结构中呀!