资源简介
PSCAD3机9节点模型 用于PSCAD经典仿真
代码片段和文件信息
// BmpProgCtrl.cpp : implementation file
//
#include “stdafx.h“
#include “listdemo.h“
#include “BmpProgCtrl.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CBmpProgCtrl
CBmpProgCtrl::CBmpProgCtrl()
{
m_nLower = 0;
m_nUpper = 100;
m_nStep = 10;
m_nPos = 0;
pDCBack = new CDC;
pDCFore = new CDC;
bmpBack.LoadBitmap(IDB_BACK);
bmpFore.LoadBitmap(IDB_FORE);
}
CBmpProgCtrl::~CBmpProgCtrl()
{
delete pDCBack;
delete pDCFore;
}
BEGIN_MESSAGE_MAP(CBmpProgCtrl CStatic)
//{{AFX_MSG_MAP(CBmpProgCtrl)
ON_WM_PAINT()
ON_WM_TIMER()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CBmpProgCtrl message handlers
void CBmpProgCtrl::SetRange(int nLower int nUpper)
{
if(nUpper > nLower)
{
m_nLower = nLower;
m_nUpper = nUpper;
}
else
{
m_nLower = nUpper;
m_nUpper = nLower;
}
}
int CBmpProgCtrl::SetPos(int nPos)
{
if(m_nLower <= nPos && m_nUpper >= nPos)
{
m_nPos = nPos;
return 1;
}
return 0;
}
int CBmpProgCtrl::OffsetPos(int nPos)
{
CRect tempRect = m_rect;
tempRect.left = m_length*m_rect.Width();
m_nPos += nPos;
if(m_nPos>m_nUpper)
{
m_nPos = m_nUpper;
InvalidateRect(&tempRect);
return 0;
}
InvalidateRect(&tempRect);
return 1;
}
int CBmpProgCtrl::SetStep(int nStep)
{
if(nStep>0)
{
m_nStep = nStep;
return 1;
}
return 0;
}
int CBmpProgCtrl::StepIt()
{
CRect tempRect = m_rect;
tempRect.left = m_length*m_rect.Width();
m_nPos += m_nStep;
if(m_nPos>m_nUpper)
{
m_nPos = m_nUpper;
InvalidateRect(&tempRect);
return 0;
}
InvalidateRect(&tempRect);
return 1;
}
void CBmpProgCtrl::OnPaint()
{
m_length = (float)m_nPos/(m_nUpper-m_nLower);
CPaintDC dc(this);
GetClientRect(&m_rect);
pDCBack->CreateCompatibleDC(&dc);
pDCFore->CreateCompatibleDC(&dc);
bmpBack.GetBitmap(&bmback);
bmpFore.GetBitmap(&bmfore);
pDCBack->Selectobject(bmpBack);
dc.StretchBlt(00m_rect.Width()m_rect.Height()pDCBack00bmback.bmWidthbmback.bmHeightSRCCOPY);
(CBitmap*)pDCFore->Selectobject(bmpFore);
dc.StretchBlt(00m_rect.Width()*m_lengthm_rect.Height()pDCFore00bmfore.bmWidth*m_lengthbmfore.bmHeightSRCCOPY);
pDCBack->DeleteDC();
pDCFore->DeleteDC();
}
int CBmpProgCtrl::GetPos()
{
return m_nPos;
}
void CBmpProgCtrl::GetRange(int &lower int &upper)
{
lower = m_nLower;
upper = m_nUpper;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2634 2007-09-09 20:32 v3\BmpProgCtrl.cpp
文件 1561 2007-09-09 20:32 v3\BmpProgCtrl.h
文件 7984 2007-09-05 16:06 v3\Client.cpp
文件 2159 2007-09-05 16:06 v3\Client.h
文件 0 2007-09-11 15:21 v3\Debug\.~xiajie~
文件 20833 2007-09-09 20:32 v3\Debug\BmpProgCtrl.obj
文件 32534 2007-09-05 17:50 v3\Debug\Client.obj
文件 75837 2007-09-05 16:01 v3\Debug\CSVLineParser.obj
文件 63220 2007-09-05 17:50 v3\Debug\DownLoad.obj
文件 311384 2007-09-11 22:57 v3\Debug\ListDemo.exe
文件 695992 2007-09-11 22:57 v3\Debug\ListDemo.ilk
文件 38380 2007-09-09 21:12 v3\Debug\ListDemo.obj
文件 5497884 2007-09-05 16:01 v3\Debug\ListDemo.pch
文件 934912 2007-09-11 22:57 v3\Debug\ListDemo.pdb
文件 37200 2007-09-11 22:57 v3\Debug\ListDemo.res
文件 112099 2007-09-11 15:44 v3\Debug\ListDemoDlg.obj
文件 48339 2007-09-05 16:01 v3\Debug\ListItem.obj
文件 111611 2007-09-08 22:22 v3\Debug\ListReport.obj
文件 76367 2007-09-05 17:50 v3\Debug\Mutl.obj
文件 101868 2007-09-05 17:50 v3\Debug\Public.obj
文件 35387 2007-09-05 17:50 v3\Debug\SocketFtp.obj
文件 54252 2007-09-05 17:50 v3\Debug\SocketHttp.obj
文件 105557 2007-09-05 16:01 v3\Debug\StdAfx.obj
文件 394240 2007-12-18 22:39 v3\Debug\vc60.idb
文件 503808 2007-09-11 15:44 v3\Debug\vc60.pdb
文件 18615 2007-09-05 16:09 v3\DownLoad.cpp
文件 6046 2007-09-05 16:09 v3\DownLoad.h
文件 56044 2007-12-18 22:39 v3\ListDemo.aps
文件 2504 2007-12-18 22:39 v3\ListDemo.clw
文件 2392 2007-09-08 14:43 v3\ListDemo.cpp
............此处省略44个文件信息
- 上一篇:仓库设备管理系统源完整代码和论文
- 下一篇:基于STM32的万用表代码
相关资源
- pscad近海风电模型 Fortran语言
- PSCAD风电建模实例双馈风力发电机的
- PSCAD4.2安装破解版+教程
- MMC逆变器仿真模型
- PSCAD详细使用教程(中文)
- VSC-HVDC PSCAD的仿真模型
- PSCAD详细使用教程中文
- 13节点配电网的建模与仿真
- PSCAD Users Guide
- 08_应用PSCAD进行直流输电系统仿真研究
- PSCAD中的风电并网仿真模型,包含电池
- 乐健-PSCADX4从入门到精通原书-源代码
- 超全pscad风机模型
- PSCAD仿真系统教程
- 基于PSCAD的分布式电源VF控制
- 双馈式风力发电机PSCAD模型
- 直驱全功率变频风机--PSCAD风机和风电
- PSCAD模型直流微网
- ur3机械臂,零件图和装配图
- PSCAD 4.2 win10 64位可用
- IEEE-9节点PSCAD模型
- PSCAD安装包
- pscad4.5完美破解professional
- PSCADX4电路设计与仿真从入门到精通高
- 乐高ev3机器人设计
- PSCADX4电路设计与仿真从入门到精通
- PSCAD 4.2 Pro 破解版
- PSCAD建模与仿真__李学生主编_北京:中
- MMC模块化多电平变换器全套资料+PSC
- 乐健老师pscad培训ppt.zip
评论
共有 条评论