home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / mslang / ttips2 / toolopti.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-12  |  1.3 KB  |  57 lines

  1. // toolopti.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "tooltest.h"
  6. #include "toolopti.h"
  7. #include "mainfrm.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char BASED_CODE THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CToolOptions dialog
  16.  
  17.  
  18. CToolOptions::CToolOptions(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CToolOptions::IDD, pParent)
  20. {   
  21.     //{{AFX_DATA_INIT(CToolOptions)
  22.     m_BoxStyle = -1;
  23.     m_SystemFont = FALSE;
  24.     //}}AFX_DATA_INIT
  25. }
  26.  
  27. void CToolOptions::DoDataExchange(CDataExchange* pDX)
  28. {
  29.     CDialog::DoDataExchange(pDX);
  30.     //{{AFX_DATA_MAP(CToolOptions)
  31.     DDX_Check(pDX, IDC_POPUP, m_Popup);
  32.     DDX_Check(pDX, IDC_STATUSLINE, m_StatusLine);
  33.     DDX_Check(pDX, IDC_TOOLBAR, m_ToolBar);
  34.     DDX_Text(pDX, IDC_WAITTIME, m_Wait);
  35.     DDV_MinMaxUInt(pDX, m_Wait, 10, 32000);
  36.     DDX_Radio(pDX, IDC_SQUARE, m_BoxStyle);
  37.     DDX_Check(pDX, IDC_SYSTEMFONT, m_SystemFont);
  38.     //}}AFX_DATA_MAP
  39. }
  40.  
  41. BEGIN_MESSAGE_MAP(CToolOptions, CDialog)
  42.     //{{AFX_MSG_MAP(CToolOptions)
  43.         // NOTE: the ClassWizard will add message map macros here
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47.  
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CToolOptions message handlers
  50. BOOL CToolOptions::OnInitDialog()
  51. {
  52.     CenterWindow();
  53.     UpdateData(FALSE);
  54.     return TRUE;
  55. }
  56.  
  57.