INPUT1.cpp
上传用户:kennygump
上传日期:2022-07-22
资源大小:347k
文件大小:1k
源码类别:

图形/文字识别

开发平台:

Visual C++

  1. // INPUT1.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "getchar.h"
  5. #include "INPUT1.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CINPUT1 dialog
  13. CINPUT1::CINPUT1(CWnd* pParent /*=NULL*/)
  14. : CDialog(CINPUT1::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CINPUT1)
  17. w = 0;
  18. h = 0;
  19. //}}AFX_DATA_INIT
  20. }
  21. void CINPUT1::DoDataExchange(CDataExchange* pDX)
  22. {
  23. CDialog::DoDataExchange(pDX);
  24. //{{AFX_DATA_MAP(CINPUT1)
  25. DDX_Text(pDX, IDC_EDIT1, w);
  26. DDV_MinMaxInt(pDX, w, 4, 128);
  27. DDX_Text(pDX, IDC_EDIT2, h);
  28. DDV_MinMaxInt(pDX, h, 4, 64);
  29. //}}AFX_DATA_MAP
  30. }
  31. BEGIN_MESSAGE_MAP(CINPUT1, CDialog)
  32. //{{AFX_MSG_MAP(CINPUT1)
  33. // NOTE: the ClassWizard will add message map macros here
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // CINPUT1 message handlers