PenWidth.cpp
Upload User: jinlangri
Upload Date: 2022-07-17
Package Size: 10774k
Code Size: 1k
Category:

GDI-Bitmap

Development Platform:

Visual C++

  1. // PenWidth.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "draw.h"
  5. #include "PenWidth.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CPenWidth dialog
  13. CPenWidth::CPenWidth(CWnd* pParent /*=NULL*/)
  14. : CDialog(CPenWidth::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CPenWidth)
  17. m_Width = 0;
  18. //}}AFX_DATA_INIT
  19. }
  20. void CPenWidth::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CPenWidth)
  24. DDX_Text(pDX, IDC_EDIT1, m_Width);
  25. DDV_MinMaxInt(pDX, m_Width, 1, 10);
  26. //}}AFX_DATA_MAP
  27. }
  28. BEGIN_MESSAGE_MAP(CPenWidth, CDialog)
  29. //{{AFX_MSG_MAP(CPenWidth)
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CPenWidth message handlers
  34. void CPenWidth::OnOK() 
  35. {
  36. // TODO: Add extra validation here
  37. UpdateData();
  38. CDialog::OnOK();
  39. }
  40. int CPenWidth::DoModal() 
  41. {
  42. // TODO: Add your specialized code here and/or call the base class
  43. return CDialog::DoModal();
  44. }