梯形图转换语句表,软件测试阶段 IMPLEMENT_DYNCREATE(VDisPlayView, CScrollView) VDisPlayView::VDisPlayView() { //P_LIST cDatList; EnableAutomation(); } VDisPlayView::~VDisPlayView() { } HFONT C_SetFont(UINT uFont) { HFONT hFont = (HFONT)GetStockObject(DEFAULT_GUI_FONT); if (hFont == NULL) hFont = (HFONT)GetStockObject(ANSI_VAR_FONT); return hFont ; } void VDisPlayView::OnFinalRelease() { // When the last reference for an automation object is released // OnFinalRelease is called. The base class will automatically // deletes the object. Add additional cleanup required for your // object before calling the base class. CScrollView::OnFinalRelease(); } BEGIN_MESSAGE_MAP(VDisPlayView, CScrollView) ON_WM_CREATE() // ON_WM_MOUSEMOVE() ON_MESSAGE(WM_DRAWDATA, OnDrawData) // ON_WM_MOUSEHWHEEL() ON_WM_SIZE() // ON_WM_MOUSELEAVE() ON_WM_NCMOUSELEAVE() END_MESSAGE_MAP() BEGIN_DISPATCH_MAP(VDisPlayView, CScrollView) END_DISPATCH_MAP() // Note: we add support for IID_IViScroll to support typesafe binding // from VBA. This IID must match the GUID that is attached to the // dispinterface in the .IDL file. // {C1771C4B-2FF0-46ED-A4FE-D381086A49E4} static const IID IID_IViScroll = { 0xC1771C4B, 0x2FF0, 0x46ED, { 0xA4, 0xFE, 0xD3, 0x81, 0x8, 0x6A, 0x49, 0xE4 } }; BEGIN_INTERFACE_MAP(VDisPlayView, CScrollView) INTERFACE_PART(VDisPlayView, IID_IViScroll, Dispatch) END_INTERFACE_MAP() // VDisPlayView drawing void VDisPlayView::OnInitialUpdate() { //CScrollView::OnInitialUpdate(); //CSize sizeTotal; // TODO: calculate the total size of this view //sizeTotal.cx = sizeTotal.cy = 1000; // SetScrollSizes(MM_TEXT, sizeTotal); SetScrollSizes(MM_TEXT, CSize(VIEW_WIDTH,VIEW_HIGHT)); CScrollView::OnInitialUpdate(); } //void VDisPlayView::OnDraw(CDC* pDC) //{ // CDocument* pDoc = GetDocument(); // //CAutoPanDoc* pDoc = GetDocument(); // ASSERT_VALID(pDoc); // // // Get the invalidated rectangle of the view, or in the case // // of printing, the clipping region of the printer dc. // CRect rectClip; // CRect rectCloud; // pDC->GetClipBox(&rectClip;); // pDC->LPtoDP(&rectClip;); // rectClip.InflateRect(1, 1); // avoid rounding to nothing // // // Note: CScrollView::OnPaint() will have already adjusted the // // viewport origin before calling OnDraw(), to reflect the // // currently scrolled position. ///* for(int x=0; x<1600; x+=50) // { // for(int y=0; y<1200; y+=50) // { // CRect rc(x,y, x+40, y+40); // pDC->FillSolidRect(rc, RGB(x,y,x*y)); // } // }*/ // // // // // TODO: add draw code here //} // VDisPlayView diagnostics #ifdef _DEBUG void VDisPlayView::AssertValid() const { CScrollView::AssertValid(); } #ifndef _WIN32_WCE void VDisPlayView::Dump(CDumpContext& dc) const { CScrollView::Dump(dc); } #endif #endif //_DEBUG // VDisPlayView message handlers int VDisPlayView::OnCreate(LPCREATESTRUCT lpCreateStruct) { if (CScrollView::OnCreate(lpCreateStruct) == -1) return -1; m_pDC=new CClientDC(this); uRowNumber=10000;// uColNumber=4; /* UINT uRowNumber ,uColNumber, *uPerCol_Width,*uPerRow_height ,;*/ uPerCol_Width =new WORD[uColNumber]; uPerRow_height=new WORD[uRowNumber]; UINT i; for(i=0;i<uColNumber;i++) { *(uPerCol_Width+i)=123; } *(uPerCol_Width+2)=323; for(i=0;i<uRowNumber;i++) { *(uPerRow_height+i)=23; } #ifdef _CPLC_TEST_COMBOBOX CRect rect; rect.top=15; rect.bottom=222; rect.left=5; rect.right=222; if (!m_CComboBox_Demo.Create( CBS_DROPDOWN|WS_VISIBLE|WS_TABSTOP|CBS_AUTOHSCROLL, rect, this, ID_FUNCTION_INSERT)) { TRACE0(" VDisPlayView Failed to create combo-box\n"); return FALSE; } m_CComboBox_Demo.SendMessage(WM_SETFONT, (WPARAM)C_SetFont(ANSI_VAR_FONT)); // IDic.Create(GetOwner()); #endif rect.top=0; //cDatList.Create(_T("CSCROLLVIEW"),(LPCWSTR) NULL, // WS_CHILD|WS_VISIBLE| ES_AUTOHSCROLL,rect,this,NULL); cDatList.CreateEx(0, WS_CHILD| WS_VISIBLE| WS_BORDER| LVS_REPORT , CRect(10,10,600,400),this,4444); FrameDat->pvRemark=&cDatList; //LVS_EDITABELS 允许项文本能够适本地进行编辑。父窗口必须运行了LVN_ENDLABLEDIT //ListView_SetExtendedListViewStyle //cDatList.SetExtendedStyle(LVS_EX_GRIDLINES| LVS_EDITLABELS); /* LV_COLUMN lvcol; lvcol.mask = LVCF_SUBITEM | LVCF_TEXT | LVCF_WIDTH; lvcol.pszText = L"索引"; lvcol.iSubItem = 0; lvcol.cx = 130; cDatList.InsertColumn(0, &lvcol;); lvcol.mask = LVCF_SUBITEM | LVCF_TEXT | LVCF_WIDTH; lvcol.pszText = L"元件"; lvcol.iSubItem = 1; lvcol.cx = 130; cDatList.InsertColumn(1,&lvcol;); lvcol.mask = LVCF_SUBITEM | LVCF_TEXT | LVCF_WIDTH; lvcol.pszText = L"注释"; lvcol.iSubItem = 2; lvcol.cx = 130; cDatList.InsertColumn(2,&lvcol;); lvcol.mask = LVCF_SUBITEM | LVCF_TEXT | LVCF_WIDTH; lvcol.pszText = L"辅助标号"; lvcol.iSubItem = 3; lvcol.cx = 130; cDatList.InsertColumn(3,&lvcol;); */ // cDatList.InsertColumn(0, L"序号", LVCFMT_LEFT, 40); // cDatList.InsertColumn(1,L"地物名称", LVCFMT_LEFT, 80); // cDatList.InsertColumn(2,L"地物颜色", LVCFMT_LEFT, 120); // CString strName, strIndex; // int m; // for(int i=0; i<32; i++) // { // strIndex.Format(L"%d", i+1); // strName.Format(L"Class%d", i+1); // cDatList.InsertItem( i, strIndex); // cDatList.SetItemText(i, 1, strName); //cDatList.SetItemText(i, 1, strName); //cDatList.SetItemData(i, RGB(rand(), rand(), rand())); // } //cDatList.ApproximateViewRect(CSize(670,700),-1); //cDatList.SetRowHeigt(26); //cDatList.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_HEADERDRAGDROP); //cDatList.Create(_T("CONTROL"),(LPCWSTR) NULL,WS_CHILD|WS_VISIBLE,rect,this,ID_FUNCTION_INSERT); /* if (!cDatList.CreateEx(0L,_T("CSCROLLVIEW"),(LPCWSTR) NULL, WS_CHILD|WS_VISIBLE| ES_AUTOHSCROLL|
- 水镜老人2012-12-26做成的一个程序,还不知道怎么用的,STEP7 下面就没有.PLD的文件。
- zhangzepang20102012-11-19假的没源码
- xysl2012-08-26源码贴出来是假的,没源码
- WFM022014-09-14软件谁小但是很实用
- fenfeimengp2012-07-06只是做成的程序,没有源码呢。
- 粉丝: 44
- 资源: 2
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 带载流子密度的双温模型matlab,电子晶格温度,电子密度,飞秒激光源模拟,有限元法解偏微分方程 德鲁德模型,带载流子密度变化
- GP026-仓库系统.zip
- HttpCanary_3.3.6.apk
- 线控制动系统仿真 Carsim和Simulink联合仿真线控制动系统BBW-EMB系统 包含简单的制动力分配和四个车轮的线控制动机构 四个车轮独立BLDCM三环PID闭环制动控制,最大真实还原线
- Comsol脉冲涡流无损检测仿真 图一:脉冲涡流仿真,检出电压信号 图二:脉冲涡流模型 图三:磁通密度模 图四:磁通密度模
- CC2530无线zigbee裸机代码实现光敏和热敏传感器数值读取.zip
- CC2530无线zigbee裸机代码实现继电器的控制.zip
- CC2530无线zigbee裸机代码实现看门口狗Watch Dog使用.zip
- CC2530无线zigbee裸机代码实现控制步进电机正反转.zip
- CC2530无线zigbee裸机代码实现人体红外传感器数值读取.zip
- CC2530无线zigbee裸机代码实现睡眠定时器唤醒系统.zip
- CC2530无线zigbee裸机代码实现外部中断控制LED开关.zip
- CC2530无线zigbee裸机代码实现外部中断控制流水灯.zip
- 基于51单片机的污水处理厂气体检测报警系统(protues仿真)-毕业设计
- CC2530无线zigbee裸机代码实现温度传感器DS18B20数值读取.zip
- CC2530无线zigbee裸机代码实现温湿度传感器DHT11数值读取.zip