gridctrl_demo210

所属分类:Windows编程
开发工具:Visual C++
文件大小:126KB
下载次数:5
上传日期:2009-08-20 15:52:33
上 传 者ws07
说明:  一个超大容量的grid 空间,我看到了也有其他人上传了,不过都是经过修改的,功能差了很多
(The capacity of a large grid of space, I saw other people have uploaded, but are modified, a lot of functional difference)

文件列表:
GridCtrlDemo.cpp (1540, 1999-04-05)
GridCtrlDemo.dsp (8453, 2000-04-12)
GridCtrlDemo.dsw (549, 1999-01-05)
GridCtrlDemo.h (1256, 1998-02-04)
GridCtrlDemo.rc (11539, 2000-02-16)
GridCtrlDemoCE.dsp (33409, 2000-04-12)
GridCtrlDemoCE.dsw (754, 2000-01-29)
GridCtrlDemoDlg.cpp (18217, 2000-04-12)
GridCtrlDemoDlg.h (3204, 2000-01-31)
gridctrl_in_view (0, 2000-04-13)
gridctrl_in_view\ChildFrm.cpp (1502, 1998-04-30)
gridctrl_in_view\ChildFrm.h (1403, 1998-04-30)
gridctrl_in_view\GridViewDemo.cpp (4481, 1998-04-30)
gridctrl_in_view\GridViewDemo.dsp (6112, 2000-04-13)
gridctrl_in_view\GridViewDemo.dsw (549, 1999-04-11)
gridctrl_in_view\GridViewDemo.h (1432, 1998-04-30)
gridctrl_in_view\GridViewDemo.rc (14234, 1998-12-03)
gridctrl_in_view\GridViewDemoDoc.cpp (1862, 1998-04-30)
gridctrl_in_view\GridViewDemoDoc.h (1549, 1998-04-30)
gridctrl_in_view\GridViewDemoView.cpp (5540, 2000-04-12)
gridctrl_in_view\GridViewDemoView.h (2227, 2000-02-23)
gridctrl_in_view\MainFrm.cpp (2564, 1998-04-30)
gridctrl_in_view\MainFrm.h (1550, 1998-04-30)
gridctrl_in_view\res (0, 2000-04-11)
gridctrl_in_view\res\GridViewDemo.ico (1078, 1998-04-30)
gridctrl_in_view\res\GridViewDemo.rc2 (404, 1998-04-30)
gridctrl_in_view\res\GridViewDemoDoc.ico (1078, 1998-04-30)
gridctrl_in_view\res\Toolbar.bmp (1078, 1998-04-30)
gridctrl_in_view\resource.h (646, 1998-12-03)
gridctrl_in_view\StdAfx.cpp (210, 1998-04-30)
gridctrl_in_view\StdAfx.h (987, 1998-04-30)
GridCtrl_src (0, 2000-04-18)
GridCtrl_src\CellRange.h (4506, 2000-04-12)
GridCtrl_src\Experimental Upgrades (0, 2000-04-11)
GridCtrl_src\Experimental Upgrades\InPlaceList.cpp (8904, 2000-01-09)
GridCtrl_src\Experimental Upgrades\InPlaceList.h (4009, 2000-01-09)
GridCtrl_src\Experimental Upgrades\TitleTip.cpp (13554, 2000-01-29)
GridCtrl_src\Experimental Upgrades\TitleTip.h (1898, 2000-01-29)
GridCtrl_src\GridCell.cpp (2916, 2000-04-12)
... ...

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

近期下载者

相关文件


收藏者