需要建立一个类来控制这个控件,如按钮要CButton m_Button,然后在dialog的DoDataExchange(CDataExchange* pDX)中添加DDX_Control(pDX, IDC_BUTTON, m_Button)
用m_Button来控制这个控件.