home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / appwiz / hierwiz / template / zoomdlg.cpp < prev    next >
C/C++ Source or Header  |  1998-03-05  |  1KB  |  53 lines

  1. // zoomdlg.cpp : implementation file
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and Microsoft
  9. // QuickHelp and/or WinHelp documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #include "stdafx.h"
  14. #include "$$root$$.h"
  15. #include "zoomdlg.h"
  16.  
  17. #ifdef _DEBUG
  18. #undef THIS_FILE
  19. static char BASED_CODE THIS_FILE[] = __FILE__;
  20. #endif
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CZoomDlg dialog
  24.  
  25. CZoomDlg::CZoomDlg(CWnd* pParent /*=NULL*/)
  26.     : CDialog(CZoomDlg::IDD, pParent)
  27. {
  28.     //{{AFX_DATA_INIT(CZoomDlg)
  29.     m_zoomX = 0;
  30.     m_zoomY = 0;
  31.     //}}AFX_DATA_INIT
  32. }
  33.  
  34. void CZoomDlg::DoDataExchange(CDataExchange* pDX)
  35. {
  36.     CDialog::DoDataExchange(pDX);
  37.     //{{AFX_DATA_MAP(CZoomDlg)
  38.     DDX_Text(pDX, IDC_EDIT1, m_zoomX);
  39.     DDV_MinMaxInt(pDX, m_zoomX, 10, 500);
  40.     DDX_Text(pDX, IDC_EDIT2, m_zoomY);
  41.     DDV_MinMaxInt(pDX, m_zoomY, 10, 500);
  42.     //}}AFX_DATA_MAP
  43. }
  44.  
  45. BEGIN_MESSAGE_MAP(CZoomDlg, CDialog)
  46.     //{{AFX_MSG_MAP(CZoomDlg)
  47.         // NOTE: the ClassWizard will add message map macros here
  48.     //}}AFX_MSG_MAP
  49. END_MESSAGE_MAP()
  50.  
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CZoomDlg message handlers
  53.