gzwsafw

所属分类:Windows编程
开发工具:C/C++
文件大小:50KB
下载次数:1
上传日期:2018-02-13 23:31:17
上 传 者expbeshgqn
说明:  一个mapgis符号库建立及编辑的源码,还不是很完善,请各位同仁帮忙

文件列表:
3DFileProc.h (1333, 2004-09-26)
MainFrm.cpp (2508, 2004-09-26)
MainFrm.h (1581, 2004-09-26)
MapExam.aps (30828, 2005-05-24)
MapExam.clw (4032, 2005-05-23)
MapExam.cpp (4227, 2004-09-26)
MapExam.dsp (5527, 2005-05-23)
MapExam.dsw (751, 2005-05-21)
MapExam.h (1367, 2004-09-26)
MapExam.ncb (74752, 2005-05-24)
MapExam.opt (58880, 2005-05-24)
MapExam.plg (2043, 2005-05-25)
MapExam.rc (14649, 2005-05-23)
MapExamDoc.cpp (1762, 2004-09-26)
MapExamDoc.h (1486, 2004-09-26)
MapExamView.cpp (10466, 2005-05-23)
MapExamView.h (2881, 2005-05-23)
mFileProc.cpp (3624, 2004-09-26)
res (0, 2017-11-17)
resource.h (2070, 2005-05-21)
res\MapExam.ico (1078, 2004-09-26)
res\MapExam.rc2 (399, 2004-09-26)
res\MapExamDoc.ico (1078, 2004-09-26)
res\Toolbar.bmp (1078, 2004-09-26)
StdAfx.cpp (209, 2004-09-26)
StdAfx.h (1054, 2004-09-26)
SubChartEdit.cpp (1058, 2005-05-21)
SubChartEdit.h (1293, 2005-05-21)
SubChartMng.cpp (5015, 2005-05-23)
SubChartMng.h (1668, 2005-05-21)

void CTextureLibraryDlg::OnLButtonDown(UINT nFlags, CPoint point) { CDialog::OnLButtonDown(nFlags, point); int i; CRect rect; CWnd* pWnd = NULL; long nSelect=-1; for(i = 0; i < 16; i++) { pWnd = (CStatic*)GetDlgItem(IDC_STATIC1+i); pWnd->GetWindowRect(rect); ScreenToClient(rect); if(rect.PtInRect(point)) { // 设置拖动状态 m_IsDraging = TRUE; SetCapture(); if(m_nSelect != i) { CDC* pDC = pWnd->GetDC(); nSelect = i + m_nScrollPos * 4; DrawSelRect(m_nSelect); m_nSelect=nSelect; DrawSelRect(pDC); pWnd->ReleaseDC(pDC); DrawSelPicture(); m_bDrawSelected=1; return; } } } } void CTextureLibraryDlg::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar) { CDialog::OnVScroll(nSBCode, nPos, pScrollBar); long nScrollPos=m_nScrollPos; if( nSBCode == SB_LINEDOWN || nSBCode == SB_BOTTOM ) { nScrollPos++; } if( nSBCode == SB_LINEUP || nSBCode == SB_TOP ) { nScrollPos--; } // 释放滚动框以后再响应 if( nSBCode == SB_THUMBPOSITION ) { nScrollPos = nPos; } if( nSBCode == SB_PAGEDOWN ) { nScrollPos += 4; } if( nSBCode == SB_PAGEUP ) { nScrollPos -= 4; } if(nScrollPos >= m_nRange) { nScrollPos = m_nRange; } if(nScrollPos <= 0) { nScrollPos = 0; } if(m_nScrollPos!=nScrollPos) { DrawSelRect(m_nSelect); m_nScrollPos=nScrollPos; DrawPicture(); DrawSelPicture(); DrawSelRect(m_nSelect); } m_ScrollBar.SetScrollPos(m_nScrollPos); }

近期下载者

相关文件


收藏者