From 01afe31c40cfd2cea3f98f1faed554876f2ab03e Mon Sep 17 00:00:00 2001 From: "varada%netscape.com" Date: Thu, 14 Oct 1999 01:56:43 +0000 Subject: [PATCH] fix for bug #6348 -new field called Title is to be added in each ini file for the show example --- cck/cckwiz/iniFiles/smallAnim.ini | 1 + cck/cckwiz/iniFiles/string.ini | 3 ++- cck/driver/ImgDlg.cpp | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cck/cckwiz/iniFiles/smallAnim.ini b/cck/cckwiz/iniFiles/smallAnim.ini index a1126812195..f44df36cc1b 100644 --- a/cck/cckwiz/iniFiles/smallAnim.ini +++ b/cck/cckwiz/iniFiles/smallAnim.ini @@ -18,6 +18,7 @@ [IMAGE] Type=Bitmap +Title=Show Example Small Anim Logo Name=logo2.bmp Value= Start_x=7 diff --git a/cck/cckwiz/iniFiles/string.ini b/cck/cckwiz/iniFiles/string.ini index 62be902543d..31902192c84 100644 --- a/cck/cckwiz/iniFiles/string.ini +++ b/cck/cckwiz/iniFiles/string.ini @@ -18,7 +18,8 @@ [IMAGE] Type=Bitmap -Name=string.bmp +Name=string.bmp +Title=Show Example User Agent String Value= Start_x=7 Start_y=7 diff --git a/cck/driver/ImgDlg.cpp b/cck/driver/ImgDlg.cpp index a9e896a342e..40b206b5df4 100644 --- a/cck/driver/ImgDlg.cpp +++ b/cck/driver/ImgDlg.cpp @@ -19,6 +19,7 @@ static char THIS_FILE[] = __FILE__; extern char iniFilePath[MAX_SIZE]; extern char imagesPath[MAX_SIZE]; extern CString iniTracker; +CString imageTitle; CImgDlg::CImgDlg(CWnd* pParent /*=NULL*/) : CDialog(CImgDlg::IDD, pParent) @@ -124,6 +125,9 @@ void CImgDlg::ReadImageFromIniFile() GetPrivateProfileString(imageSectionName, "Name", "", buffer, 250, iniFileName); image.name = CString(imagesPath) + CString(buffer); + GetPrivateProfileString(imageSectionName, "Title", "", buffer, 250, iniFileName); + imageTitle = CString(buffer); + GetPrivateProfileString(imageSectionName, "start_X", "", buffer, 250, iniFileName); image.location.x = atoi(buffer); @@ -153,7 +157,7 @@ BOOL CImgDlg::OnCommand(WPARAM wParam, LPARAM lParam) int CImgDlg::DoModal() { // TODO: Add your specialized code here and/or call the base class - + return CDialog::DoModal(); } @@ -184,7 +188,8 @@ BOOL CImgDlg::OnHelpInfo(HELPINFO* pHelpInfo) BOOL CImgDlg::OnInitDialog() { CDialog::OnInitDialog(); - + + SetWindowText(imageTitle); // TODO: Add extra initialization here return TRUE; // return TRUE unless you set the focus to a control