资源简介

空间离散点椭球拟合源代码,采用MFC开发,里面包含真实工程测量数据,界面也很美观

资源截图

代码片段和文件信息

// EditEx.cpp : implementation file   
//   
   
#include “stdafx.h“   
#include “EditEx.h“   
   
#ifdef _DEBUG   
#define new DEBUG_NEW   
#undef THIS_FILE   
static char THIS_FILE[] = __FILE__;   
#endif   
   
#define ENORMAL            0           //普通样式      Wx01ab   
#define ENUMBER            1           //数字样式      -123456.2534   
#define EDATE              2           //日期样式      2005.12.12         
   
#define BORDER_NONE        -1       //无边框   
#define BORDER_DEFAULT      0       //边框为普通样式   
#define BORDER_RECTANGLE    1       //边框为矩形   
#define BORDER_LINE         2       //只有下边有线条   
/////////////////////////////////////////////////////////////////////////////   
// CEditEx   
   
CEditEx::CEditEx()
{
    m_Decial=-1;
    m_EditFormat=ENORMAL;
    m_Borderstyle=BORDER_NONE;
    m_BorderWidth=1;
    m_DateMark=‘.‘;
    m_bTransparent=FALSE;
m_bHover=FALSE;
m_bTracking=FALSE;
    m_BorderColor=GetSysColor(COLOR_3DDKSHADOW);
}
   
CEditEx::~CEditEx()
{
    if (m_BkDC.GetSafeHdc() != NULL)
    {
        m_BkDC.DeleteDC();
    }
}
   
BEGIN_MESSAGE_MAP(CEditEx CEdit)
    //{{AFX_MSG_MAP(CEditEx)
    ON_WM_KEYDOWN()
    ON_WM_CHAR()
    ON_WM_ERASEBKGND()
    ON_WM_GETDLGCODE()
ON_WM_NCPAINT()
ON_CONTROL_REFLECT(EN_CHANGE onchange)
ON_CONTROL_REFLECT(EN_HSCROLL OnHscroll)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
   
/////////////////////////////////////////////////////////////////////////////   
   
void CEditEx::onkeydown(UINT nChar UINT nRepCnt UINT nFlags)    
{
    // TODO: Add your message handler code here and/or call default   
    switch(nChar)   
    {
    case VK_ESCAPE:
        {
            SetWindowText(NULL);
            ShowWindow(SW_HIDE);
            GetParent()->SetFocus();
        }
        break;
    case VK_DELETE:
        {
            if (m_EditFormat==EDATE)   
            {
                int start=0 end=0;
                GetSel(startend);
   
                if(start==4 || start==7)
                {
                    SetSel(start+1 start+1);
                }
                else
                {
                    SetSel(start start+1);
                    ReplaceSel(“ “);
                }
                return;
            }
        }   
        break;
    }
    CEdit::onkeydown(nChar nRepCnt nFlags);
}
   
void CEditEx::OnChar(UINT nChar UINT nRepCnt UINT nFlags)    
{   
    // TODO: Add your message handler code here and/or call default   
    if ((nChar==‘\‘‘ || nChar==‘\“‘) && (Getstyle() & ES_PASSWORD))   
    {
        MessageBox(“键入的是非法字符,不能输入!“ “警告“ MB_OK|MB_IConstop);
        return;
    }
    else if (nChar!=VK_RETURN)
    {
        if (nChar==VK_BACK)   
        {
            if (m_EditFormat==EDATE)
            {
                int start=0end=0;
                GetSel(start end);
   
                if (start != 5 && sta

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      14494  2017-04-06 11:23  EllipsoidFit\EditEx.cpp

     文件       3254  2015-08-22 01:18  EllipsoidFit\EditEx.h

     文件      51896  2016-10-17 14:52  EllipsoidFit\EllipsoidFit.aps

     文件       1515  2016-10-17 14:53  EllipsoidFit\EllipsoidFit.clw

     文件       2147  2015-08-08 19:30  EllipsoidFit\EllipsoidFit.cpp

     文件       5445  2016-10-17 15:01  EllipsoidFit\EllipsoidFit.dsp

     文件        532  2015-08-08 19:30  EllipsoidFit\EllipsoidFit.dsw

     文件       1390  2015-08-08 19:30  EllipsoidFit\EllipsoidFit.h

     文件     328704  2017-04-06 11:23  EllipsoidFit\EllipsoidFit.ncb

     文件     799232  2017-04-06 11:23  EllipsoidFit\EllipsoidFit.opt

     文件       2884  2017-04-06 11:23  EllipsoidFit\EllipsoidFit.plg

     文件       5786  2016-10-17 14:52  EllipsoidFit\EllipsoidFit.rc

     文件      11199  2017-04-06 11:22  EllipsoidFit\EllipsoidFitDlg.cpp

     文件       1974  2017-04-06 11:22  EllipsoidFit\EllipsoidFitDlg.h

     文件       5568  2016-09-07 10:00  EllipsoidFit\HeaderCtrlEx.cpp

     文件        810  2015-08-27 14:11  EllipsoidFit\HeaderCtrlEx.h

     文件       8589  2015-08-27 14:11  EllipsoidFit\ListCtrlEx.cpp

     文件       1957  2015-08-27 14:10  EllipsoidFit\ListCtrlEx.h

     文件      19332  2003-11-29 11:53  EllipsoidFit\Matrix.h

     文件      73728  2003-11-29 12:34  EllipsoidFit\MatrixVCDLL.lib

     文件      21357  2015-09-08 19:38  EllipsoidFit\Picture.cpp

     文件       1194  2015-09-08 19:38  EllipsoidFit\Picture.h

     文件       3687  2015-08-08 19:30  EllipsoidFit\ReadMe.txt

     文件     102400  2017-04-06 11:23  EllipsoidFit\Release\EllipsoidFit.exe

     文件        748  2015-08-11 01:31  EllipsoidFit\Release\log.txt

     文件        319  2015-08-10 16:50  EllipsoidFit\Release\log1.txt

     文件        983  2015-08-10 16:50  EllipsoidFit\Release\log2.txt

     文件        741  2015-08-07 15:46  EllipsoidFit\Release\log3.txt

     文件       2026  2015-07-02 13:52  EllipsoidFit\Release\log4.txt

     文件     249856  2003-11-29 12:34  EllipsoidFit\Release\MatrixVCDLL.dll

............此处省略25个文件信息

评论

共有 条评论