========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : GridViewDemo
========================================================================
AppWizard has created this GridViewDemo application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your GridViewDemo application.
GridViewDemo.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CGridViewDemoApp application class.
GridViewDemo.cpp
This is the main application source file that contains the application
class CGridViewDemoApp.
GridViewDemo.rc
This is a listing of all of the Microsoft Windows resources that the
program uses. It includes the icons, bitmaps, and cursors that are stored
in the RES subdirectory. This file can be directly edited in Microsoft
Developer Studio.
res\GridViewDemo.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file GridViewDemo.rc.
res\GridViewDemo.rc2
This file contains resources that are not edited by Microsoft
Developer Studio. You should place all resources not
editable by the resource editor in this file.
GridViewDemo.clw
This file contains information used by ClassWizard to edit existing
classes or add new classes. ClassWizard also uses this file to store
information needed to create and edit message maps and dialog data
maps and to create prototype member functions.
/////////////////////////////////////////////////////////////////////////////
For the main frame window:
MainFrm.h, MainFrm.cpp
These files contain the frame class CMainFrame, which is derived from
CMDIFrameWnd and controls all MDI frame features.
res\Toolbar.bmp
This bitmap file is used to create tiled images for the toolbar.
The initial toolbar and status bar are constructed in the
CMainFrame class. Edit this toolbar bitmap along with the
array in MainFrm.cpp to add more toolbar buttons.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one document type and one view:
GridViewDemoDoc.h, GridViewDemoDoc.cpp - the document
These files contain your CGridViewDemoDoc class. Edit these files to
add your special document data and to implement file saving and loading
(via CGridViewDemoDoc::Serialize).
GridViewDemoView.h, GridViewDemoView.cpp - the view of the document
These files contain your CGridViewDemoView class.
CGridViewDemoView objects are used to view CGridViewDemoDoc objects.
res\GridViewDemoDoc.ico
This is an icon file, which is used as the icon for MDI child windows
for the CGridViewDemoDoc class. This icon is included by the main
resource file GridViewDemo.rc.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named GridViewDemo.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Developer Studio reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
If your application uses MFC in a shared DLL, and your application is
in a language other than the operating system's current language, you
will need to copy the corresponding localized resources MFC40XXX.DLL
from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,
and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.
For example, MFC40DEU.DLL contains resources translated to German.) If you
don't do this, some of the UI elements of your application will remain in the
language of the operating system.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
一个优秀的VC网格控件CGridCtrl
共83个文件
h:27个
cpp:23个
ico:4个
5星 · 超过95%的资源 需积分: 50 270 下载量 100 浏览量
2008-09-17
15:44:58
上传
评论 6
收藏 342KB ZIP 举报
温馨提示
网格控件的用途非常广泛,在我的一个项目中需要实现类似EXCEL的界面,为此我采用了一个优秀的CGridCtrl控件,其原作者为 Chris Maunder (原作者所写的MFC Grid control的最新版本可以到http://www.codetools.com/miscctrl/gridctrl.asp查阅)为了方便地实现单元格的合并和撤销,我定制了如下的几个公有成员函数 SetCellCombine(); //设置单元格的合并特性 UndoCellCombine(); //取消合并 SetFixedCellCombine(); //合并单元格 GetCellp(); //取得单元格对象指针 其具体的实现我在代码中添加了//want remove it? 和//added for combine;注释语句来表明这段说明中的代码是用于合并。以方便以后的改变。 使用办法: 将文件名为:GridCtr.cpp,GridCtr.p,CellRange.h,GridDropTarget.cpp,GridDropTarget.h InPlaceEdit.cpp,InPlaceEdit.h, InPlaceList.cpp,InPlaceList.h, MemDC.h,TitleTip.cpp, TitleTip.h 复制到你的项目中然后导入。修改相应的头文件就可以了
资源详情
资源评论
资源推荐
收起资源包目录
gridctrl_demo226.zip (83个子文件)
gridctrl.html 250KB
gridctrl_demo226
GridCtrlDemo.rc 11KB
GridCtrl_src
GridCtrl.h 41KB
GridCtrl.cpp 227KB
GridCellBase.cpp 26KB
TitleTip.h 3KB
CellRange.h 5KB
MemDC.h 3KB
GridCellBase.h 8KB
Experimental Upgrades
InPlaceList.cpp 9KB
TitleTip.h 2KB
GridCellLite.h 6KB
TitleTip.cpp 13KB
InPlaceList.h 4KB
GridCellLite.cpp 5KB
GridCell.h 6KB
TitleTip.cpp 9KB
InPlaceEdit.h 2KB
GridCell.cpp 7KB
GridDropTarget.h 3KB
GridDropTarget.cpp 4KB
InPlaceEdit.cpp 8KB
GridCtrlDemo.sln.vs2003 2KB
StdAfx.cpp 210B
GridCtrlDemo.dsw 549B
resource.h 4KB
GridCtrlDemo.cpp 2KB
GridCtrlDemo.h 1KB
GridCtrlDemo.vcproj.vs2003 14KB
GridCtrlDemo.clw 6KB
GridCtrlDemoDlg.cpp 33KB
GridCtrlDemo.vcproj 16KB
GridCtrlDemo.sln 2KB
GridCtrlDemoDlg.h 5KB
StdAfx.h 964B
ReleaseStatic
GridCtrlDemo.exe 136KB
GridCtrlDemoCE.dsw 754B
gridctrl_in_view
GridViewDemoView.cpp 5KB
StdAfx.cpp 210B
GridViewDemo.cpp 4KB
resource.h 646B
GridViewDemo.h 1KB
MainFrm.h 2KB
GridViewDemo.rc 14KB
GridViewDemoDoc.cpp 2KB
GridViewDemo.dsw 549B
GridViewDemoView.h 2KB
ReadMe.txt 4KB
GridViewDemo.clw 4KB
StdAfx.h 987B
MainFrm.cpp 3KB
GridViewDemo.sln 883B
GridViewDemo.vcproj 8KB
Release
GridViewDemo.exe 128KB
GridViewDemoDoc.h 2KB
res
GridViewDemo.rc2 404B
GridViewDemoDoc.ico 1KB
Toolbar.bmp 1KB
GridViewDemo.ico 1KB
ChildFrm.cpp 1KB
ChildFrm.h 1KB
GridViewDemo.dsp 6KB
GridCtrlDemoCE.vcp 53KB
NewCellTypes
GridCellNumeric.h 798B
GridURLCell.h 1KB
GridCellCheck.cpp 5KB
GridCellDateTime.h 3KB
GridURLCell.cpp 5KB
GridCellCombo.cpp 14KB
GridCellDateTime.cpp 6KB
GridCellNumeric.cpp 1KB
GridCellCheck.h 2KB
GridCellCombo.h 5KB
res
GreyGrid.ico 5KB
smallico.bmp 1KB
Toolbar.bmp 718B
cursor1.cur 326B
GridCtrlDemo.rc2 404B
GridCtrlDemo.ico 5KB
GridCtrlDemoCE.vcw 558B
GridCtrlDemoCE.vco 55KB
GridCtrlDemoCE.dsp 37KB
GridCtrlDemo.dsp 9KB
共 83 条
- 1
ly917837052
- 粉丝: 5
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论30