国产免费AV|泡泡玛特欧洲总部将设在伦敦|中文天堂网www新版资源在线|一本久道综合在线中文|国精产品一二三产区的使用方法|香蕉鱼在线观看|www.27eee

 找回密碼
 注冊
搜索

電力系統故障錄波數據管理系統分析儀vc++源碼

[復制鏈接]
樓主
電力系統故障錄波數據管理系統分析儀vc 源碼.rar (8.36 MB, 售價: 1 E幣)
電力系統故障錄波數據管理系統分析儀vc++源碼 1.png
  1. DDCJ.cpp  implementation file


  2. #include stdafx.h
  3. #include wgl_32.h
  4. #include DDCJ.h

  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif


  10. CDDCJ dialog


  11. CDDCJCDDCJ(CWnd pParent =NULL)
  12.          CDialog(CDDCJIDD, pParent)
  13. {
  14.         {{AFX_DATA_INIT(CDDCJ)
  15.                  NOTE the ClassWizard will add member initialization here
  16.         }}AFX_DATA_INIT
  17. }


  18. void CDDCJDoDataExchange(CDataExchange pDX)
  19. {
  20.         CDialogDoDataExchange(pDX);
  21.         {{AFX_DATA_MAP(CDDCJ)
  22.                  NOTE the ClassWizard will add DDX and DDV calls here
  23.         }}AFX_DATA_MAP
  24. }


  25. BEGIN_MESSAGE_MAP(CDDCJ, CDialog)
  26.         {{AFX_MSG_MAP(CDDCJ)
  27.         ON_WM_PAINT()
  28.         }}AFX_MSG_MAP
  29. END_MESSAGE_MAP()


  30. CDDCJ message handlers

  31. BOOL CDDCJOnInitDialog()
  32. {
  33.         CDialogOnInitDialog();

  34.         GetDlgItem(IDC_RESULT)-GetWindowRect(&m_ResultRect);
  35.         ScreenToClient(&m_ResultRect);
  36.         return TRUE;   return TRUE unless you set the focus to a control
  37.                        EXCEPTION OCX Property Pages should return FALSE
  38. }

  39. void CDDCJOnPaint()
  40. {
  41.         CPaintDC dc(this);  device context for painting
  42.       
  43.         char temp[20];
  44.         dc.SetBkMode(TRANSPARENT);
  45.         if(fFaultJL == -1)
  46.                 dc.TextOut(m_ResultRect.left+20, m_ResultRect.top+40, 故障距離未知!);
  47.         else
  48.         {
  49.                 sprintf(temp, 故障距離=%-.2fKM, fFaultJL);
  50.         dc.TextOut(m_ResultRect.left+20, m_ResultRect.top+40, temp);
  51.         }
  52.       
  53. }
  54. 詳細完整源碼見附件
復制代碼


您需要登錄后才可以回帖 登錄 | 注冊

本版積分規則

手機版|小黑屋|ELEOK |網站地圖

GMT+8, 2026-5-26 06:36

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回復 返回頂部 返回列表