|
故障記錄分析儀源碼。完美型!
0.jpg (39.88 KB, 下載次數(shù): 88)
下載附件
2018-1-9 00:36 上傳
0.jpg (21.92 KB, 下載次數(shù): 78)
下載附件
2018-1-9 00:37 上傳
c++源程序如下:
- // DDCJ.cpp : implementation file
- //
- #include "stdafx.h"
- #include "wgl_32.h"
- #include "DDCJ.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CDDCJ dialog
- CDDCJ::CDDCJ(CWnd* pParent /*=NULL*/)
- : CDialog(CDDCJ::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CDDCJ)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CDDCJ::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CDDCJ)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CDDCJ, CDialog)
- //{{AFX_MSG_MAP(CDDCJ)
- ON_WM_PAINT()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CDDCJ message handlers
- BOOL CDDCJ::OnInitDialog()
- {
- CDialog::OnInitDialog();
- GetDlgItem(IDC_RESULT)->GetWindowRect(&m_ResultRect);
- ScreenToClient(&m_ResultRect);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }
- void CDDCJ::OnPaint()
- {
- CPaintDC dc(this); // device context for painting
-
- char temp[20];
- dc.SetBkMode(TRANSPARENT);
- if(fFaultJL == -1)
- dc.TextOut(m_ResultRect.left+20, m_ResultRect.top+40, "故障距離未知!");
- else
- {
- sprintf(temp, "故障距離=%-.2fKM", fFaultJL);
- dc.TextOut(m_ResultRect.left+20, m_ResultRect.top+40, temp);
- }
-
- }
復(fù)制代碼
所有資料51hei提供下載:
61549840WGL.rar
(8.36 MB, 下載次數(shù): 97)
2018-1-8 21:48 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
|
|