зеркало из https://github.com/mozilla/pjs.git
fix for bug #6348 -new field called Title is to be added in each ini file for the show example
This commit is contained in:
Родитель
6f18d96994
Коммит
01afe31c40
|
@ -18,6 +18,7 @@
|
|||
|
||||
[IMAGE]
|
||||
Type=Bitmap
|
||||
Title=Show Example Small Anim Logo
|
||||
Name=logo2.bmp
|
||||
Value=
|
||||
Start_x=7
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
[IMAGE]
|
||||
Type=Bitmap
|
||||
Name=string.bmp
|
||||
Title=Show Example User Agent String
|
||||
Value=
|
||||
Start_x=7
|
||||
Start_y=7
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
@ -185,6 +189,7 @@ BOOL CImgDlg::OnInitDialog()
|
|||
{
|
||||
CDialog::OnInitDialog();
|
||||
|
||||
SetWindowText(imageTitle);
|
||||
// TODO: Add extra initialization here
|
||||
|
||||
return TRUE; // return TRUE unless you set the focus to a control
|
||||
|
|
Загрузка…
Ссылка в новой задаче