MFC textbox跟spin绑定后,编辑textbox中的数值,按spin可以继续增加减小

MFC textbox和spin绑定后,编辑textbox中的数值,按spin可以继续增加减小
如题,现在遇到了个问题,
例如,textbox中当前值是2,步长是3,我在textbox中把数值改成10后,按spin上键,
textbox中显示的是5,而不是13,请问各位大神这个问题应该如何解决啊

麻烦详细一点
------解决思路----------------------
CWnd::UpdateData
BOOL UpdateData( BOOL bSaveAndValidate = TRUE );

Return Value

Nonzero if the operation is successful; otherwise 0. If bSaveAndValidate is TRUE, then a return value of nonzero means that the data is successfully validated.

Parameters

bSaveAndValidate

Flag that indicates whether dialog box is being initialized (FALSE) or data is being retrieved (TRUE).

Remarks

Call this member function to initialize data in a dialog box, or to retrieve and validate dialog data.

The framework automatically calls UpdateData with bSaveAndValidate set to FALSE when a modal dialog box is created in the default implementation of CDialog::OnInitDialog. The call occurs before the dialog box is visible. The default implementation of CDialog::OnOK calls this member function with bSaveAndValidate set to TRUE to retrieve the data, and if successful, will close the dialog box. (If the Cancel button is clicked in the dialog box, the dialog box is closed without the data being retrieved.)

CWnd Overview 
------解决思路----------------------
  Class Members 
------解决思路----------------------
  Hierarchy Chart

See Also   CWnd::DoDataExchange

------解决思路----------------------
引用:
Quote: 引用:

我更相信自己:添加UDN_DELTAPOS消息,在OnDeltaposSpin函数中自己去手动更新textbox的值


你好,如果我现在已经使用了ON_EN_KILLFOCUS(IDC_EDIT_H782B_VX_YQ, &CTabPscEo::OnEnKillfocusEditPscEo)
再添加DN_DELTAPOS消息消息处理,可以吗,这两个可以共存吗


理论上是可以的呀,不过你添加ON_EN_KILLFOCUS做什么呢?我没这么用过,你添加DN_DELTAPOS消息试试,验证一下就知道了