// GridCtrl.cpp : implementation file
//
// MFC Grid Control
//
// Written by Chris Maunder
// mailto:[email protected]
//
// Copyright (c) 1998-1999.
//
// The code contained in this file is based on the original
// WorldCom Grid control written by Joe Willcoxson,
// mailto:[email protected]
// http://users.aol.com/chinajoe
// The code has gone through so many modifications that I'm
// not sure if there is even a single original line of code.
// In any case Joe's code was a great framewaork on which to
// build.
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent, and
// providing that this notice and the authors name and all copyright
// notices remains intact. If the source code in this file is used in
// any commercial application then a statement along the lines of
// "Portions copyright (c) Chris Maunder, 1998" must be included in
// the startup banner, "About" box or printed documentation. An email
// letting me know that you are using it would be nice as well. That's
// not much to ask considering the amount of work that went into this.
//
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability for any damage/loss of business that
// this product may cause.
//
// Expect bugs!
//
// Please use and enjoy, and let me know of any bugs/mods/improvements
// that you have found/implemented and I will fix/incorporate them into
// this file.
//
// History:
// --------
// This control is constantly evolving, sometimes due to new features that I
// feel are necessary, and sometimes due to existing bugs. Where possible I
// have credited the changes to those who contributed code corrections or
// enhancements (names in brackets) or code suggestions (suggested by...)
//
// 1.0 20 Feb 1998 First release version.
// 1.01 24 Feb 1998 Memory leak fix (Jens Bohlmann)
// Fixec typo (my fault!) in CMemDC.h - Claus Arend-Schneider)
// Bug in GetSelectedCount (Lyn Newton)
// 1.02 4 Mar 1998 Scrolling a little neater (less dead area)
// Cell selection via OnTimer correctly updates Focus cell (Suggested by Lyn Newton)
// 1.03 17 Mar 1998 Clipboard functions added, Intellimouse support
// Using 32 bit scroll pos functions instead of 16 bit ("cronos")
// Added OLE drag and drop.
// 1.04 6 Apr 1998 Added Ctrl-A = Select All, fixed CGridDropTarget
// problem, minor bug in CopyTextFromGrid (assert on
// empty string). Cleaned up reponse to m_bEditable
// (OnDrop and Ctrl-X disabled)
// 1.05 10 May 1998 Memory leak fixed. (Yuheng Zhao)
// Changed OLE initialisation (Carlo Comino)
// Added separate fore + background cell colours (Suggested by John Crane)
// ExpandToFit etc cleaned up - now decreases and
// increases cell sizes to fit client area.
// Added notification messages for the grid's parent (Suggested by
// Added GVIS_READONLY state
// 1.06 20 May 1998 Added TAB key handling. (Daniela Rybarova)
// Intellimouse code correction for whole page scrolling (Paul Grant)
// Fixed 16 bit thumb track problems (now 32 bit) (Paul Grant)
// Fixed accelerator key problem in CInPlaceEdit (Matt Weagle)
// Fixed Stupid ClassWizard code parsing problem (Michael A. Barnhart)
// Double buffering now programmatically selectable
// Workaround for win95 drag and drop registration problem
// Corrected UNICODE implementation of clipboard stuff
// Dragging and dropping from a selection onto itself no
// no longer causes the cells to be emptied
// 1.07 28 Jul 1998 Added EnsureVisible. (Roelf Werkman)
// Fixed delete key problem on read-only cells. (Serge Weinstock)
// OnEndInPlaceEdit sends notification AFTER storing
// the modified text in the cell.
// Added CreateInPlaceEditControl to make it easier to
// change the way cells are edited. (suggested by Chris Clark)
// Added Set/GetGridColor.
// CopyTextToClipboard and PasteTextToGrid problem with
// blank cells fixed, and CopyTextToClipboard tweaked.
// SetModified called when cutting text or hitting DEL. (Jonathan Watters)
// Focus cell made visible when editing begins.
// Blank lines now treated correctly when pasting data.
// Removed ES_MULTILINE style from the default edit control.
// Added virtual CreateCell(row, col) function.
// Fonts now specified on a per-cell basis using Get/SetItemFont.
// 1.08 6 Aug 1998 Ctrl+arrows now allows cell navigation. Modified
// CreateInPlaceEditControl to accept ID of control.
// Added Titletips to grid cells. (Added EnableTitleTips / GetTitleTips)
// 1.09 12 Sep 1998 When printing, parent window title is printed in header - Gert Rijs
// GetNextItem search with GVNI_DROPHILITED now returns
// cells with GVIS_DROPHILITED set, instead of GVIS_FOCUSED (Franco Bez)
// (Also fixed minor bug in GetNextItem) (Franco Bez)
// Cell selection using Shift+arrows works - Franco Bez
// SetModified called after edits ONLY if contents changed (Franco Bez)
// Cell colours now dithered in 256 colour screens.
// Support for MSVC 4.2 (Graham Cheetham)
// 1.10 30 Nov 1998 Titletips now disappear on a scroll event. Compiler errors
// fixed. Grid lines drawing fixed (Graham Cheetham).
// Cell focus fix on Isert Row/Col (Jochen Kauffmann)
// Added DeleteNonFixedRows() (John Rackley)
// Message #define conflict fixed (Oskar Wieland)
// Titletips & cell insert/delete fix (Ramesh Dhar)
// Titletips repeat-creation bug fixed.
// GVN_SELCHANGED message now sends current cell ID
// Font resource leak in GetTextExtent fixed (Gavin Jerman)
// More TAB fixes (Andreas Ruh)
// 1.11 1 Dec 1998 GetNextItem bug fix (suggested by Francis Fu)
// InsertColumn (-1) fix (Roy Hopkins)
// Was too liberal with the "IsEditable"'s. oops. (Michel Hete)
// 1.11a 4 Jan 1999 Compiler errors in VC6 fixed.
// 1.12 10 Apr 1999 Cleanup to allow GRIDCONTR
没有合适的资源?快使用搜索试试~ 我知道了~
RTU-TEST-PLAT.rar_C 公司 上位机_上位机_水利
共85个文件
h:18个
sbr:13个
cpp:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 20 浏览量
2022-09-24
07:43:30
上传
评论
收藏 19.12MB RAR 举报
温馨提示
本公司用来测试RTU的上位机软件,工程领域为水利信息化,很完整的程序,不可多得的资料。通信采用串口和网口。
资源推荐
资源详情
资源评论
收起资源包目录
RTU-TEST-PLAT.rar (85个子文件)
RTU TEST PLAT
CellRange.h 4KB
ramdrive.cpp 3KB
GridCtrlDemoDlg.cpp 124KB
GridCtrlDemo.dsp 6KB
TitleTip.h 1KB
GridDropTarget.h 2KB
Protocol.h 2KB
GridCtrl.h 26KB
GridCtrlDemo.plg 3KB
GridCtrlDemo.vcxproj.user 143B
GridCtrlDemo.suo 4KB
ComboGridCtrl.h 1KB
Protocol.cpp 17KB
_desktop.ini 9B
MemDC.h 3KB
res
GridCtrlDemo.rc2 404B
_desktop.ini 9B
GridCtrlDemo.ico 1KB
GridCtrlDemo.sdf 49.08MB
GridCtrlDemo.dsw 549B
comm.cpp 2KB
GridCtrlDemo.rc 14KB
InPlaceEdit.h 3KB
gridctrldemo.log 4KB
ComboGridCtrl.cpp 5KB
GridCtrlDemo.clw 7KB
InPlaceList.cpp 9KB
GridCtrlDemo.aps 28KB
GridCtrlDemo.cpp 2KB
GridCtrlDemoDlg.h 5KB
InPlaceList.h 4KB
InPlaceEdit.cpp 8KB
GridCtrl.cpp 168KB
StdAfx.cpp 210B
resource.h 5KB
GridCtrlDemo.h 1KB
GridDropTarget.cpp 4KB
StdAfx.h 987B
ramdrive.h 3KB
GridCtrlDemo.ncb 1.12MB
clientsocket.h 424B
initsock.h 461B
TcpServer.cpp 9KB
GridCtrlDemo.vcxproj.filters 4KB
Debug
vc100.idb 555KB
StdAfx.obj 539KB
comm.sbr 7KB
CL.write.1.tlog 8KB
CL.read.1.tlog 38KB
_desktop.ini 9B
GridCtrlDemo.sbr 131KB
GridCtrlDemo.pch 22.88MB
TcpServer.obj 90KB
ComboGridCtrl.obj 99KB
GridCtrlDemoDlg.sbr 141KB
GridDropTarget.obj 24KB
cl.command.1.tlog 7KB
GridCtrlDemo.obj 33KB
comm.obj 12KB
GridCtrlDemo.log 32KB
Protocol.obj 127KB
TitleTip.sbr 105KB
GridCtrlDemo.lastbuildstate 90B
ramdrive.sbr 4KB
StdAfx.sbr 3.88MB
GridCtrl.sbr 145KB
GridDropTarget.sbr 116KB
GridCtrlDemo.unsuccessfulbuild 0B
ComboGridCtrl.sbr 128KB
Protocol.sbr 38KB
InPlaceEdit.obj 67KB
TcpServer.sbr 27KB
InPlaceEdit.sbr 122KB
GridCtrlDemo.res 16KB
InPlaceList.sbr 105KB
ramdrive.obj 37KB
RTUTest.exe 1.32MB
RTUTest.ini 230B
vc100.pdb 2.23MB
comm.h 1KB
TcpServer.h 1KB
GridCtrlDemo.ini 98B
GridCtrlDemo.opt 190KB
TitleTip.cpp 7KB
GridCtrlDemo.vcxproj 9KB
共 85 条
- 1
资源评论
APei
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 7777端口抓包数据集
- IMG_0694.GIF
- 基于图像的三维模型重建C++源代码+文档说明(高分课程设计)
- 基于聚焦法的工件立体测量方案,根据数据进行三维重建 使用HALCON处理图像,MATLAB拟合数据+源代码+数据集+效果图
- 锄战三国村 修改:货币使用不减 v1.10(2) 原创 (中文).apk
- 基于python实现的单目双目视觉三维重建+源代码+图像图片(高分课程设计)
- 基于C+++OPENCV的全景图像拼接源码(课程设计)
- 基于Python+OpenCV对多张图片进行全景图像拼接,消除鬼影,消除裂缝+源代码+文档说明+界面截图(高分课程设计)
- 基于C++实现的全景图像拼接源码(课程设计)
- 基于SIFT特征点提取和RASIC算法实现全景图像拼接python源码+文档说明+界面截图+详细注释(95分以上课程大作业)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功