1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

0024372: HLR Sample: erased objects are shown in HLR

Compilation errors were corrected.
Removed .aps files
Sample paths fields were updated to read help file from sample folder.
This commit is contained in:
aba
2013-12-05 15:39:48 +04:00
committed by bugmaster
parent ef2d8af761
commit b3837d74e0
34 changed files with 315 additions and 187 deletions

View File

@@ -129,24 +129,24 @@ BOOL CAboutDlgStd::OnInitDialog(){
Title->SetWindowText(strTitle);
SetWindowText(dlgTitle);
if(SampleName.Find("Viewer2d")==-1)
CWnd* aReadmeEdit = GetDlgItem(IDC_README);
CFile aFile;
CString aHelpFilePath = CString (((OCC_App*)AfxGetApp())->GetInitDataDir()) + "\\README.txt";
if(aFile.Open (aHelpFilePath, CFile::modeRead))
{
CWnd* aReadmeEdit = GetDlgItem(IDC_README);
aReadmeEdit->ShowWindow(FALSE);
aReadmeEdit->ShowWindow(TRUE);
UINT aFileLength = (UINT)aFile.GetLength();
char* buffer=new char[aFileLength];
aFile.Read(buffer,aFileLength);
ReadmeText.SetString(buffer);
ReadmeText.SetAt(aFileLength,'\0');
ReadmeText.Replace("\n","\r\n");
UpdateData(FALSE);
}
else
{
CFile aFile;
if(aFile.Open("..//..//..//README.txt",CFile::modeRead))
{
UINT aFileLength = (UINT)aFile.GetLength();
char* buffer=new char[aFileLength];
aFile.Read(buffer,aFileLength);
ReadmeText.SetString(buffer);
ReadmeText.SetAt(aFileLength,'\0');
ReadmeText.Replace("\n","\r\n");
UpdateData(FALSE);
}
aReadmeEdit->ShowWindow(FALSE);
}
CenterWindow();