好看的犯罪类电影:VC++如何把edit box的整型值用SetDlgItemInt()输出

来源:百度文库 编辑:高考问答 时间:2024/04/29 06:50:07
我初学VC,请各位高手帮忙:
如下是在MFC Class Wizard定义的Mamber Variables

class CMyProceDlg : public CDialog
{
// Construction
public:
CMyProceDlg(CWnd* pParent = NULL); // standard constructor
void OnChange();
// Dialog Data
//{{AFX_DATA(CMyProceDlg)
enum { IDD = IDD_MYPROCE_DIALOG };
int m_IntEdit;
int m_IntEdit1;
//}}AFX_DATA

// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyProceDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL

// Implementation
protected:
HICON m_hIcon;

// Generated message map functions
//{{AFX_MSG(CMyProceDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
afx_msg void OnChangeEdit1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

我的问题是我如何才能把输入到Edit Box的整型值输出到Edit1 Box中去;
我试过用GetDlgItem(IDC_EDIT)->GetWindowText();
GetDlgItemInt();
SetDlgItemInt();
都不行,因为他们的形参接收的只能是字符数组和整型数组;
但是在MFC Class Wizard定义的Mamber Variables中定义的这二个都只是整型的如:
int m_IntEdit;
int m_IntEdit1;
那我怎么才能用到二个量变去接收输入和输出呀;
救~~~~ME!!!!help!!!!help
!!!!help
!!!!help
!!!!help
!!!!help
!!!!help
!!!!help