⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dwelltool.cpp

📁 连接oracle
💻 CPP
字号:
// DWellTool.cpp: implementation of the CDWellTool class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "drawcli.h"
#include "DWellTool.h"

#include "DWell.h"
#include "DLayer.h"

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

//#include "drawvw.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CDWellTool::CDWellTool()
{

}

CDWellTool::~CDWellTool()
{

}

BOOL CDWellTool::DrawWellLink(CDrawView *pView)
{
	//ASSERT_VALID(this);
	ASSERT(pView != NULL);
	//int isize = pView->pWell.GetSize();
	/*
	if(isize >0 ) 
	{
		CRect client;
		CDC *pDC = pView->GetDC();
		pDC->GetClipBox(client);		//取屏幕宽度与高度
		int iWidth = client.Width();
		int iHeight = client.Height();
		
		int iX = 0;
		int iY = 0;
		int itmp;
		CDWell *cwell ;
		tagRECT  *rect = new tagRECT();

		for(int i=isize-1; i>=0; i--)
		{
			iX = iWidth/isize + (i/2 * 200);
			iY = iHeight/3 + (i%2 * 200);
			if (i==isize-1)
			{
				iX = iWidth/2;
				iY = iHeight/2;
			}
			cwell = new CDWell();
			cwell = (CDWell *)pWell[i];
			pDC->TextOut(iX,iY,cwell->sWellNO);
			itmp = cwell->sWellNO.GetLength();
			iX += itmp/2;
			iY += 50;
			pDC->MoveTo(iX,iY);
			
			rect->left = iX - 20;
			rect->top = iY - 20;
			rect->right = iX + 20;
			rect->bottom = iY + 20;
			pDC->Ellipse(rect);
			
			cwell->sMQJB.TrimRight();
			if (cwell->sMQJB == "31" )
			{//水井 其它类别有  11  
				rect->left = iX - 10;
				rect->top = iY - 10;
				rect->right = iX + 10;
				rect->bottom = iY + 10;
				pDC->Ellipse(rect);
			}
		}
	}
	*/
	return TRUE;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -