chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
1 parent
2b0c2055ff
commit
164968b62e
6171 files changed
+191244
-191243
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#include "stdafx.h"
|
||||
#include "stdafx.h"
|
||||
#include "CSFCDlg.h"
|
||||
|
||||
IMPLEMENT_DYNAMIC(CCSFCDlg, CDialog)
|
||||
@@ -69,7 +69,7 @@ BOOL CCSFCDlg::OnInitDialog()
|
||||
|
||||
int CCSFCDlg::GetScript(CString& sScript,int nRoomIndex)
|
||||
{
|
||||
//ROOMSLAB: 房间|位置方向|距离|子舱宽|板厚度|偏移x|偏移y|编号
|
||||
//ROOMSLAB: 房间|位置方向|距离|子舱宽|板厚度|偏移x|偏移y|编号
|
||||
sScript.Format(_T("<ROOMSLAB:%d|%d|%.3f|%.3f|%.3f|%.3f|%.3f|%d>")
|
||||
, nRoomIndex , m_nType , m_dDistFr , m_dW , m_dt,m_ptOff.x,m_ptOff.y,m_iNo);
|
||||
return m_iNo;
|
||||
@@ -82,13 +82,13 @@ void CCSFCDlg::OnBnClickedOk()
|
||||
|
||||
if (m_dW - m_dRoomW > 1.e-6)
|
||||
{
|
||||
AfxMessageBox(_T("分舱的宽度不能大于主舱宽!"));
|
||||
AfxMessageBox(_T("分舱的宽度不能大于主舱宽!"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_dt < 30.0)
|
||||
{
|
||||
AfxMessageBox(_T("分舱的隔板厚度尺寸太小!至少大于30毫米!"));
|
||||
AfxMessageBox(_T("分舱的隔板厚度尺寸太小!至少大于30毫米!"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -102,16 +102,16 @@ void CCSFCDlg::OnBnClickedRadio1()
|
||||
UpdateData();
|
||||
if (m_nType == 0)
|
||||
{
|
||||
m_wndSplitTip.SetWindowText(_T("隔板距底部距离 D:"));
|
||||
m_wndSlabWH.SetWindowText(_T("隔板板宽 W:"));
|
||||
m_wndSplitTip.SetWindowText(_T("隔板距底部距离 D:"));
|
||||
m_wndSlabWH.SetWindowText(_T("隔板板宽 W:"));
|
||||
m_dW = m_dRoomW;
|
||||
|
||||
UpdateData(FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_wndSplitTip.SetWindowText(_T("隔板距左侧距离 D:"));
|
||||
m_wndSlabWH.SetWindowText(_T("隔板板高 W:"));
|
||||
m_wndSplitTip.SetWindowText(_T("隔板距左侧距离 D:"));
|
||||
m_wndSlabWH.SetWindowText(_T("隔板板高 W:"));
|
||||
m_dW = m_dRoomH;
|
||||
|
||||
UpdateData(FALSE);
|
||||
|
||||
Reference in new issue
Block a user