fix for bug #6348 -new field called Title is to be added in each ini file for the show example
git-svn-id: svn://10.0.0.236/trunk@50644 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
c89e48e233
commit
60280cb48a
@ -18,6 +18,7 @@
|
||||
|
||||
[IMAGE]
|
||||
Type=Bitmap
|
||||
Title=Show Example Small Anim Logo
|
||||
Name=logo2.bmp
|
||||
Value=
|
||||
Start_x=7
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user