// GridCtrl.cpp : implementation file
//
// MFC Grid Control
//
// Written by Chris Maunder
// mailto:chrismaunder@codeguru.com
//
// Copyright (c) 1998.
//
// The code contained in this file is based on the original
// WorldCom Grid control written by Joe Willcoxson,
// mailto:chinajoe@aol.com
// http://users.aol.com/chinajoe
//
// 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)
//
// TODO:
// - OnOutOfMemory function instead of exceptions
// - Decrease timer interval over time to speed up selection over time
//
// NOTE: Grid data is stored row-by-row, so all operations on large numbers
// of cells should be done row-by-row as well.
//
没有合适的资源?快使用搜索试试~ 我知道了~
mfc 通用表格,自治手绘
共72个文件
h:17个
cpp:12个
obj:12个
2 下载量 9 浏览量
2023-08-24
10:32:59
上传
评论
收藏 74.87MB ZIP 举报
温馨提示
mfc 通用表格,自治手绘
资源推荐
资源详情
资源评论
收起资源包目录
ControlMaterial.zip (72个子文件)
ControlMaterial
.vs
ControlMaterial
v15
Browse.VC.db 74.34MB
.suo 75KB
ipch
ec5848d8693f8bb.ipch 123.19MB
ControlMaterial
CMySQL.h 835B
ControlMaterial.aps 107KB
INPLACEEDIT.CPP 8KB
INPLACEEDIT.H 3KB
INPLACELIST.CPP 9KB
LjyGrid.cpp 7KB
CGridMode.cpp 2KB
CSetShop.h 620B
CItemList.cpp 225B
CELLRANGE.H 4KB
ControlMaterialDlg.h 698B
MEMDC.H 3KB
resource.h 1KB
ControlMaterial.vcxproj 11KB
framework.h 2KB
CGridMode.h 341B
ControlMaterial.rc 13KB
INPLACELIST.H 4KB
GRIDCTRL.H 24KB
res
ControlMaterial.ico 66KB
ControlMaterial.rc2 686B
pch.h 602B
ControlMaterial.vcxproj.filters 4KB
ControlMaterialDlg.cpp 2KB
ControlMaterial.h 2KB
CItemList.h 1023B
ControlMaterial.vcxproj.user 238B
CMySQL.cpp 2KB
CSetShop.cpp 1KB
pch.cpp 158B
LjyGrid.h 3KB
Debug
vc141.pdb 9.46MB
ControlMaterial.res 68KB
CGridMode.obj 54KB
ControlMaterialDlg.obj 47KB
GRIDCTRL.obj 517KB
vc141.idb 1.38MB
ControlMaterial.pch 57.56MB
CItemList.obj 27KB
ControlMaterial.log 479B
msado15.tli 145KB
LjyGrid.obj 79KB
pch.obj 1009KB
CGridList.obj 78KB
CMySQL.obj 48KB
CSetShop.obj 44KB
INPLACEEDIT.obj 53KB
msado15.tlh 167KB
ControlMaterial.obj 223KB
ControlMaterial.tlog
CL.write.1.tlog 12KB
rc.command.1.tlog 478B
rc.write.1.tlog 282B
rc.read.1.tlog 4KB
ControlMaterial.lastbuildstate 205B
CL.command.1.tlog 10KB
link.command.1.tlog 3KB
link.read.1.tlog 9KB
link.write.1.tlog 2KB
CL.read.1.tlog 118KB
INPLACELIST.obj 69KB
GRIDCTRL.CPP 156KB
CGridList.h 670B
targetver.h 299B
CGridList.cpp 7KB
ControlMaterial.cpp 10KB
ControlMaterial.sln 1KB
Debug
ControlMaterial.exe 441KB
ControlMaterial.ilk 4.57MB
ControlMaterial.pdb 3.96MB
共 72 条
- 1
资源评论
吃个糖糖
- 粉丝: 458
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功