91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.72MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-11-05
  • 語言: C/C++
  • 標簽: VC++??畫板??

資源簡介

這是用vc ++編寫的畫板程序,可以畫直線、圓、矩形等,功能比較穩定,支持鍵盤快捷鍵

資源截圖

代碼片段和文件信息

//?AsmDlg.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“power.h“
#include?“AsmDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CAsmDlg?dialog



CAsmDlg::CAsmDlg(CView?*pView)
{
m_pView=pView;
m_bPausing=false;
m_bFirstStart=true;
m_offPlotToDlg=CRect(0000);
}

BOOL?CAsmDlg::Create()
{
m_bFirstStart=true;
m_bCanSize=false;
return?CDialog::Create(CAsmDlg::IDD);
}

void?CAsmDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAsmDlg)
//?NOTE:?the?ClassWizard?will?add?DDX?and?DDV?calls?here
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CAsmDlg?CDialog)
//{{AFX_MSG_MAP(CAsmDlg)
ON_BN_CLICKED(IDC_ASMPRINTPREVIEW?OnAsmprintpreview)
ON_BN_CLICKED(IDC_ASMPRINT?OnAsmprint)
ON_BN_CLICKED(IDC_ASMSTART?OnAsmstart)
ON_BN_CLICKED(IDC_ASMPAUSE?OnAsmpause)
ON_WM_SIZE()
ON_WM_TIMER()
ON_WM_PAINT()
ON_BN_CLICKED(IDC_ASMDATASTORE?OnAsmdatastore)
ON_BN_CLICKED(IDC_ASMDATASLOAD?OnAsmdatasload)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CAsmDlg?message?handlers


void?CAsmDlg::OnAsmprintpreview()?
{
//?TODO:?Add?your?control?notification?handler?code?here

m_pView->PostMessage(WM_ASMPRINTORPREVIEWASMPRINTPREVIEW);


}

void?CAsmDlg::OnAsmprint()?
{
//?TODO:?Add?your?control?notification?handler?code?here
m_pView->PostMessage(WM_ASMPRINTORPREVIEWASMPRINT);

}

void?CAsmDlg::OnAsmstart()?
{
//?TODO:?Add?your?control?notification?handler?code?here

m_lStartTime=timeGetTime();
long?curtime=0;
double?y=0.0;
m_asmrealtime.Reset();
m_asmrealtime.AddPoint(0curtime?y);
SetTimer(11000NULL);

if(m_bFirstStart)
{
CButton?*bt;
bt=(CButton?*)GetDlgItem(IDC_ASMSTART);
m_bFirstStart=false;
bt->SetWindowText(“重新開始“);
}
else
{
CButton?*bt;
bt=(CButton?*)GetDlgItem(IDC_ASMPAUSE);
m_bPausing=false;
bt->SetWindowText(“暫停“);
}

}

void?CAsmDlg::OnAsmpause()?
{
//?TODO:?Add?your?control?notification?handler?code?here
CButton?*bt;
bt=(CButton?*)GetDlgItem(IDC_ASMPAUSE);
if(m_bPausing)
{
SetTimer(11000NULL);
m_bPausing=false;
bt->SetWindowText(“暫停“);
}
else
{
KillTimer(1);
m_bPausing=true;
bt->SetWindowText(“繼續“);
}

}

BOOL?CAsmDlg::OnInitDialog()?
{
CDialog::OnInitDialog();
//?TODO:?Add?extra?initialization?here


TRACE(“?OnInitDialog??\n“);
m_bPausing=false;???????????????//暫停按鈕現在為“非暫停”狀態
CRect?Rect;

//計算實時曲線區域坐標
CWnd?*pd=(CWnd?*)GetDlgItem(IDC_ASMREALTIME);
pd->GetClientRect(&Rect);//control?logic??coordinate
pd->ClientToScreen(&Rect);//screen?coordinate
ScreenToClient(&Rect);//CView?logic?coordinate

m_asmrealtime.m_bAutoScrollX=true;
//m_asmrealtime.m_bUseRightYAxis=false;//單Y軸(默認)
m_as

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-03-04?16:29??畫板\
?????文件????????7427??2010-03-29?21:50??畫板\article.dsp
?????文件?????????723??2010-03-29?21:50??畫板\article.dsw
?????文件???????82944??2010-03-29?21:50??畫板\article.ncb
?????文件???????55808??2010-03-29?21:49??畫板\article.opt
?????文件????????6336??2010-03-29?21:49??畫板\AsmDlg.cpp
?????文件????????2349??2010-03-29?21:49??畫板\AsmDlg.h
?????文件???????45056??2010-03-29?21:49??畫板\cplot.dll
?????文件???????22456??2010-03-29?21:49??畫板\cplot.lib
?????目錄???????????0??2011-03-04?16:29??畫板\Debug\
?????文件??????131124??2010-03-29?21:53??畫板\Debug\article.exe
?????文件??????139328??2010-03-29?21:53??畫板\Debug\clPlot.dll
?????文件???????13214??2010-03-29?21:53??畫板\Debug\clPlot.exp
?????文件???????22206??2010-03-29?21:53??畫板\Debug\clPlot.lib
?????文件??????128962??2010-03-29?21:53??畫板\Debug\clPlot.obj
?????文件??????320512??2010-03-29?21:51??畫板\Debug\clPlot.pdb
?????文件????????7365??2010-03-29?21:51??畫板\Debug\plot.obj
?????文件?????6580468??2010-03-29?21:51??畫板\Debug\plot.pch
?????文件?????????796??2010-03-29?21:51??畫板\Debug\plot.res
?????文件????????7888??2010-03-29?21:51??畫板\Debug\power.res
?????文件??????117854??2010-03-29?21:51??畫板\Debug\StdAfx.obj
?????文件??????246784??2010-03-29?21:51??畫板\Debug\vc60.idb
?????文件??????430080??2010-03-29?21:51??畫板\Debug\vc60.pdb
?????文件????????2414??2010-03-29?21:49??畫板\MainFrm.cpp
?????文件????????1450??2010-03-29?21:49??畫板\MainFrm.h
?????目錄???????????0??2011-03-04?16:29??畫板\plot\
?????文件???????43923??2010-03-29?21:50??畫板\plot\clPlot.cpp
?????文件???????12307??2010-03-29?21:50??畫板\plot\clPlot.h
?????文件????????4339??2010-03-29?21:50??畫板\plot\MemDC.h
?????文件????????4295??2010-03-29?21:50??畫板\plot\plot.001
?????文件???????17956??2010-03-29?21:50??畫板\plot\plot.aps
............此處省略39個文件信息

評論

共有 條評論