This patch to Chris Maunder's CGridCtrl class includes the following
changes. Search for EFW in the code to locate them. Most changes
contain notes or are pretty self-explanatory.
MemDC.h
-------
Added code to clear the bitmap background when created so that if used
by other classes that don't completely draw over their client area, we
don't see garbage showing through.
InPlaceEdit.cpp
---------------
Fixed EndEdit() so that it does not cause assertion errors and crashes
if called multiple times. This can occur if a derived grid control is
used that validates its input and you click on a grid control scrollbar.
In the above situation, the edit control can receive a WM_KILLFOCUS
event after EndEdit() has been called but hasn't finished yet (i.e. it
hasn't returned from the pOwner->SendMessage() call yet). This patch
will probably need applying to any other inplace controls that use the
same code in EndEdit().
GridCell.h
----------
Added new function prototype for PrintCell() to handle the printing of
cells.
GridCell.cpp
------------
Various changes to CGridCell::Draw() to make it draw cells better when
using alternate color schemes and to keep the cell focus highlight in
any mode.
Removed printing references as that's now done by
CGridCell::PrintCell().
Fixed the sort marker so that it doesn't draw out of bounds in cells
that are as tall or shorter than the font height.
Added DT_NOPREFIX when drawing text so that we can see '&' characters.
Changed CGridCell::GetTextExtent() so that it uses its current text to
figure the extent if NULL is passed in the 'str' parameter. This was
done to support the new CGridCtrl::GetCellTextExtent() function.
GridCtrl.h
----------
Added new CGridCtrl::GetCellTextExtent() function to get the text extent
of the text currently in the specified cell. This saves having to
retrieve the cell text and then call CGridCtrl::GetTextExtent().
Added CGridCtrl::SetItemTextFmt() and CGridCtrl::SetItemTextFmtID() to
allow the use of printf-style formatting codes when setting text and also
the use of resource string IDs.
Added various new data members to support shaded/unshaded printout and
user-definable page margins. Also added the relevant support functions
to get and set the new data members.
Added a message handler for OnRButtonUp() so that it can forward the
message to the parent to invoke a right click context menu.
GridCtrl.cpp
------------
Added code where relevant to support the new data members and functions
noted above.
Set m_bAllowDragAndDrop to FALSE in the constructor. This is how it was
in the last version and is how I prefer it. Change it back if you
prefer it the other way.
Added some bug fixes reported by others from the prior release that
didn't look like they made it into the new version (flush OLE data
source clipboard, ignore Escape in OnChar() for instant cell editing).
Added code in several locations to fix problems with cell focus and
selection highlighting.
Added code and adjusted existing code where necessary to support the new
printing features noted above.
End of changes
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
MFC Windows 程序设计之表格控件例程,适合初学MFC的小伙伴学习研究,博客中有对应的讲解和演示,避免走弯路,费时费力。也真心希望能够帮助正在苦学MFC Windows 程序设计的小伙伴们,你们的成长是我最大的幸福
资源推荐
资源详情
资源评论






























收起资源包目录





















































































共 73 条
- 1
资源评论

- UTF-92024-03-21资源简直太好了,完美解决了当下遇到的难题,这样的资源很难不支持~
- qq147258882023-10-06感谢大佬分享的资源,对我启发很大,给了我新的灵感。
- 2301_800570492023-10-16资源简直太好了,完美解决了当下遇到的难题,这样的资源很难不支持~

五一编程
- 粉丝: 1w+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 实例学生宿舍管理系统数据库研究设计.doc
- WCDMA网络规划策略探讨.doc
- 基于B-S三层架构的高校网络教学管理系统设计.docx
- 软件工程大四社会实践报告.docx
- 计算机在生物医药领域的应用与发展前景.docx
- 通信模组行业市场发展趋势分析-工业互联网的基石网络设备和通信模组需.docx
- 计算机病毒的安全防御策略.docx
- 三种不同的形式的电子商务研究分析.doc
- 三相短路和单相接地短路MATLAB.doc
- 计算机专业毕业论文[]3.doc
- 基于移动学习空间的教师网络研修模式设计与实证研究.docx
- 财务管理信息化建设中存在的问题与对策.docx
- 餐饮有限公司网站建设方案.doc
- 2013年计算机组装和维护教学计划.doc
- 智能电网安全策略切换判决算法设计.docx
- 计算机网络技术基础分解.ppt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制
