RndBtnDemoDlg.cpp
上传用户:hchw_8888
上传日期:2007-01-01
资源大小:23k
文件大小:1k
源码类别:

按钮控件

开发平台:

Visual C++

  1. // RndBtnDemoDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "RndBtnDemo.h"
  5. #include "RndBtnDemoDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CRndBtnDemoDlg dialog
  13. CRndBtnDemoDlg::CRndBtnDemoDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CRndBtnDemoDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CRndBtnDemoDlg)
  17. //}}AFX_DATA_INIT
  18. }
  19. void CRndBtnDemoDlg::DoDataExchange(CDataExchange* pDX)
  20. {
  21. CDialog::DoDataExchange(pDX);
  22. //{{AFX_DATA_MAP(CRndBtnDemoDlg)
  23. DDX_Control(pDX, IDBUTTON1,  m_Button1);
  24. DDX_Control(pDX, IDBUTTON2,  m_Button2);
  25. DDX_Control(pDX, IDBUTTON3,  m_Button3);
  26. DDX_Control(pDX, IDCANCEL,   m_Button5);
  27. DDX_Control(pDX, IDC_BUTTON1,m_Button6);
  28. DDX_Control(pDX, IDC_BUTTON2,m_Button7);
  29. //}}AFX_DATA_MAP
  30. }
  31. BEGIN_MESSAGE_MAP(CRndBtnDemoDlg, CDialog)
  32. //{{AFX_MSG_MAP(CRndBtnDemoDlg)
  33. //}}AFX_MSG_MAP
  34. END_MESSAGE_MAP()
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CRndBtnDemoDlg message handlers
  37. BOOL CRndBtnDemoDlg::OnInitDialog()
  38. {
  39. CDialog::OnInitDialog();
  40. return TRUE;  // return TRUE  unless you set the focus to a control
  41. }