把非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 @@
// XToolBarCtrl.cpp : implementation file
// XToolBarCtrl.cpp : implementation file
//
#include "stdafx.h"
@@ -47,7 +47,7 @@ BOOL XToolBarCtrl::OnToolTipText(UINT, NMHDR* pNMHDR, LRESULT* pResult)
if (pNMHDR->code == TTN_NEEDTEXTA && (pTTTA->uFlags & TTF_IDISHWND) ||
pNMHDR->code == TTN_NEEDTEXTW && (pTTTW->uFlags & TTF_IDISHWND))
{
return FALSE; // shen rui add 对话框控件不显示
return FALSE; // shen rui add 对话框控件不显示
}
if (nID != 0) // will be zero on a separator
@@ -112,13 +112,13 @@ void XToolBarCtrl::InitToolBar(int ButtonID[], int len, int ResID, CWnd* pParent
pIndex->idCommand = ButtonID[lIndex];
if(ButtonID[lIndex] == 0) {
pIndex->fsStyle = TBSTYLE_SEP; //分隔符
pIndex->fsStyle = TBSTYLE_SEP; //分隔符
pIndex->iBitmap = 0;
numSep++;
}
else {
pIndex->fsStyle = TBSTYLE_BUTTON;
pIndex->iBitmap = lIndex - numSep; //减去分隔符数目
pIndex->iBitmap = lIndex - numSep; //减去分隔符数目
}
pIndex->fsState = TBSTATE_ENABLED;
pIndex++;