home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Cell Control / DATA1.CAB / VCDEMO_Files / BKDlg.cpp next >
Encoding:
C/C++ Source or Header  |  1998-01-11  |  2.1 KB  |  97 lines

  1. // BKDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "VCDemo.h"
  6. #include "BKDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CBKDlg dialog
  16.  
  17.  
  18. CBKDlg::CBKDlg(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CBKDlg::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CBKDlg)
  22.     m_style = 1;
  23.     //}}AFX_DATA_INIT
  24. }
  25.  
  26.  
  27. void CBKDlg::DoDataExchange(CDataExchange* pDX)
  28. {
  29.     CDialog::DoDataExchange(pDX);
  30.     //{{AFX_DATA_MAP(CBKDlg)
  31.     DDX_Radio(pDX, IDC_RADIO1, m_style);
  32.     DDX_Control(pDX, IDC_SGCTRL1, m_ctrl);
  33.     //}}AFX_DATA_MAP
  34. }
  35.  
  36.  
  37. BEGIN_MESSAGE_MAP(CBKDlg, CDialog)
  38.     //{{AFX_MSG_MAP(CBKDlg)
  39.     ON_BN_CLICKED(IDC_RADIO1, OnRadio1)
  40.     ON_BN_CLICKED(IDC_RADIO2, OnRadio2)
  41.     ON_BN_CLICKED(IDC_RADIO3, OnRadio3)
  42.     ON_BN_CLICKED(IDC_RADIO4, OnRadio4)
  43.     ON_BN_CLICKED(IDC_RADIO5, OnRadio5)
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CBKDlg message handlers
  49.  
  50. void CBKDlg::OnRadio1() 
  51. {
  52.     // TODO: Add your control notification handler code here
  53.     UpdateData();
  54.     m_ctrl.DoSetBackGround( m_style );
  55. }
  56.  
  57. void CBKDlg::OnRadio2() 
  58. {
  59.     // TODO: Add your control notification handler code here
  60.     UpdateData();
  61.     m_ctrl.DoSetBackGround( m_style );
  62. }
  63.  
  64. void CBKDlg::OnRadio3() 
  65. {
  66.     // TODO: Add your control notification handler code here
  67.     UpdateData();
  68.     m_ctrl.DoSetBackGround( m_style );
  69. }
  70.  
  71. void CBKDlg::OnRadio4() 
  72. {
  73.     // TODO: Add your control notification handler code here
  74.     UpdateData();
  75.     m_ctrl.DoSetBackGround( m_style );
  76. }
  77.  
  78. void CBKDlg::OnRadio5() 
  79. {
  80.     // TODO: Add your control notification handler code here
  81.     UpdateData();
  82.     m_ctrl.DoSetBackGround( m_style );
  83. }
  84.  
  85. BOOL CBKDlg::OnInitDialog() 
  86. {
  87.     CDialog::OnInitDialog();
  88.     
  89.     // TODO: Add extra initialization here
  90.     m_ctrl.SetPageLabelVisible( FALSE );
  91.     COleVariant var( "VCDEMO" );
  92.     m_ctrl.DoSetMessageTitle( var );
  93.     return TRUE;  // return TRUE unless you set the focus to a control
  94.                   // EXCEPTION: OCX Property Pages should return FALSE
  95. }
  96.  
  97.