点在折线上
来源:互联网 发布:淘宝助理快速打印 编辑:程序博客网 时间:2024/04/29 09:55
CRect rect,rect1;CPoint pt;int k,dx,dy;pt.x = X;pt.y = Y;TCHAR service_id[TRAIN_ORDER_LEN];//TCHAR local_sub_id[LOCAL_SUB_ID_LEN];TCHAR destcode[DESTCODE_LEN];/*for(int j=0;j<ln.rec_cn;j++){rec = &ln.psta[j];if(rec == NULL) return;k = j+1;while(k<ln.rec_cn){if(!ln.psta[k].notShow){rec1 = &ln.psta[k];break;}k++;}rect.left = rec->pt_a.x-4;rect.right = rec->pt_d.x+4;rect.top = rec->pt_a.y-4;rect.bottom = rect.top+8;if(PtInRect(rect,pt))//select{_tcsncpy(service_id,&rec->train_order_id[max(0,TRAIN_ORDER_LEN-pDoc->m_display_trainWidth-1)], min(TRAIN_ORDER_LEN, pDoc->m_display_trainWidth+1));_tcsncpy(local_sub_id,&rec->local_sub_id[max(0,LOCAL_SUB_ID_LEN-pDoc->m_display_localSubIdWidth-1)], min(LOCAL_SUB_ID_LEN, pDoc->m_display_localSubIdWidth+1));_tcsncpy(destcode,&rec->destcode[max(0,DESTCODE_LEN-pDoc->m_display_destcodeWidth-1)], min(DESTCODE_LEN, pDoc->m_display_destcodeWidth+1));pCopyTrip->m_strService.Format("%s",service_id);pCopyTrip->m_strSubid.Format("%s",local_sub_id);pCopyTrip->m_strDestcode.Format("%s",destcode);pCopyTrip->UpdateData(FALSE);return ;}else{dx = rec1->pt_a.x-rec->pt_d.x;dy = rec1->pt_a.y-rec->pt_d.y;rect1.left = rect.right-8;rect1.right = rect.right;for(k=0;k<dx;k++){rect1.left++;rect1.right++;rect1.top = rect.top+(rect1.right-rect.right)*dy/dx-4;rect1.bottom = rect.top+(rect1.right-rect.right)*dy/dx+4;if(PtInRect(rect1,pt))//select{_tcsncpy(service_id,&rec->train_order_id[max(0,TRAIN_ORDER_LEN-pDoc->m_display_trainWidth-1)], min(TRAIN_ORDER_LEN, pDoc->m_display_trainWidth+1));_tcsncpy(local_sub_id,&rec->local_sub_id[max(0,LOCAL_SUB_ID_LEN-pDoc->m_display_localSubIdWidth-1)], min(LOCAL_SUB_ID_LEN, pDoc->m_display_localSubIdWidth+1));_tcsncpy(destcode,&rec->destcode[max(0,DESTCODE_LEN-pDoc->m_display_destcodeWidth-1)], min(DESTCODE_LEN, pDoc->m_display_destcodeWidth+1));pCopyTrip->m_strService.Format("%s",service_id);pCopyTrip->m_strSubid.Format("%s",local_sub_id);pCopyTrip->m_strDestcode.Format("%s",destcode);pCopyTrip->UpdateData(FALSE);return;}}}}*/
阅读全文
0 0
- 点在折线上
- 440_画出折线图上的红点
- 折线图中,时间单位是天时,同一天的两条数据,在时间轴上展现为两个点,而不是一个点
- jfreechart折线图如何在折点旁显示折点数据
- 折线图(五)根据实际情况值,绘制在折线图坐标轴对应位置上
- JFreeChart的应用-----在JSP页面上的折线画法
- 在网页上指定位置绘制折线图
- arcgis server flex 实现在地图上绘制折线图
- echarts折线图更改折线点类型
- 站在起跳点上
- 判断点在直线上
- 在图上标注点
- 判断点在直线上
- ArcGIS.Server.9.2.DotNet在ElementGraphicsLayer画点、线、折线、面、圆、矩形的代码
- ArcGIS.Server.9.2.DotNet在ElementGraphicsLayer画点、线、折线、面、圆、矩形的代码
- 如何在WM上创建接入点
- 判断点是否在直线上
- 在Html页面上添加锚点
- 怎样才是一个基础水平与进阶水平的Java程序员
- TLS回调
- Integer~IntegerCache
- shiro学习笔记4———INI配置说明
- git: Your branch and 'origin/master' have diverged
- 点在折线上
- Spring注解@Resource和@Autowired区别对比
- 图像边缘梯度的定义
- Cannot change version of project facet Dynamic Web Module to 3.0
- 【Log日志】一个封装的日志打印库(显示类,方法,行数)--破晓觉醒
- Unity Android调用.so文件
- 阿里云Tomcat配置
- centos7与centos6区别
- 面试题【什么是Java虚拟机?为什么Java被称作是“平台无关的编程语言”?】