把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
gjm committed 2026-10-04 00:04:20 +08:00
1 parent 2b0c2055ff
commit 164968b62e
6171 files changed
+191244 -191243

No files matched your search

@@ -1,4 +1,4 @@
// MatDlg.cpp : implementation file
// MatDlg.cpp : implementation file
//
#include "stdafx.h"
@@ -30,7 +30,7 @@ static int CompareBookmarksForSort(const long *bookmark1, const long *bookmark2)
}
// modify by xlc on 090902 消除tg5lib影响
// modify by xlc on 090902 消除tg5lib影响
//#if ADS<18
#if 0
@@ -112,7 +112,7 @@ void CGridView::OnDocFileChanged()
}
// 取得所有行的Bookmark或/并排序
// 取得所有行的Bookmark或/并排序
void CGridView::GetBookmarks(BOOL bRetriveFromDbf)
{
if (!m_pTable) return;
@@ -139,11 +139,11 @@ void CGridView::GetBookmarks(BOOL bRetriveFromDbf)
}
//布置Grid的界面
//布置Grid的界面
void CGridView::ConfigGrid()
{
if (!m_pTable) return;
m_bReadEnable = FALSE; //禁止Grid从数据源读取数据, 锁定
m_bReadEnable = FALSE; //禁止Grid从数据源读取数据, 锁定
// Set other miscellaneous properties for the BookList grid
// Set properties for grid columns -- first remove the two default
@@ -181,7 +181,7 @@ void CGridView::ConfigGrid()
}
else m_grid.SetBookmark(COleVariant(*m_lstBookmarks[0]));
m_bReadEnable = TRUE; //解开Grid从数据源读取数据的锁定
m_bReadEnable = TRUE; //解开Grid从数据源读取数据的锁定
m_grid.ReBind();
}
@@ -270,14 +270,14 @@ void CGridView::ReadData(CTrueDBGrid50_RowBuffer &RowBuffer, VARIANT FAR* StartL
RowBuffer.SetRowCount(RowsFetched);
}
// 往grid送数据
// 往grid送数据
void CGridView::OnUnboundReadDataExMatgrid(LPDISPATCH RowBuf, VARIANT FAR* StartLocation, long offset, long FAR* ApproximatePosition)
{
CTrueDBGrid50_RowBuffer RowBuffer(RowBuf);
static BOOL bLocked = FALSE; //进行锁定,即下一次的读数消息必须在本次消息结束之后方可以处理
static BOOL bLocked = FALSE; //进行锁定,即下一次的读数消息必须在本次消息结束之后方可以处理
if (bLocked) {
#if !defined(NDEBUG)
adsout << _T("\nGrid违背了锁定规则!");
adsout << _T("\nGrid违背了锁定规则!");
#endif
return;
}
@@ -286,7 +286,7 @@ void CGridView::OnUnboundReadDataExMatgrid(LPDISPATCH RowBuf, VARIANT FAR* Start
bLocked=FALSE;
}
// 更新材料库
// 更新材料库
void CGridView::OnUnboundWriteDataMatgrid(LPDISPATCH RowBuf, VARIANT FAR* WriteLocation)
{
// TODO: Add your control notification handler code here
@@ -311,7 +311,7 @@ void CGridView::OnUnboundWriteDataMatgrid(LPDISPATCH RowBuf, VARIANT FAR* WriteL
}
}
//增加一行记录
//增加一行记录
void CGridView::OnUnboundAddDataMatgrid(LPDISPATCH RowBuf, VARIANT FAR* NewRowBookmark)
{
// Construct a RowBuffer class object from the supplied LPDISPATCH (RowBuf). This
@@ -356,7 +356,7 @@ void CGridView::OnUnboundAddDataMatgrid(LPDISPATCH RowBuf, VARIANT FAR* NewRowBo
}
//删除一行
//删除一行
void CGridView::OnUnboundDeleteRowMatgrid(VARIANT FAR* Bookmark)
{
XDbfTable *rs = m_pTable;
@@ -384,7 +384,7 @@ void CGridView::OnUnboundDeleteRowMatgrid(VARIANT FAR* Bookmark)
m_grid.SetApproxCount(m_lstBookmarks.Length());
}
// 单击列的头部进行排序
// 单击列的头部进行排序
void CGridView::OnHeadClickMatgrid(short ColIndex)
{
CTrueDBGrid50_Columns Cols = m_grid.GetColumns();