зеркало из https://github.com/mozilla/pjs.git
fix for bug #10361 - make neccessary changes in ini files in the title
This commit is contained in:
Родитель
8b47e8df4a
Коммит
9be2f33a33
|
@ -114,8 +114,10 @@ END_MESSAGE_MAP()
|
|||
|
||||
BOOL CWizardUI::OnSetActive()
|
||||
{
|
||||
char* TempTitle = (char *)(LPCTSTR)(CurrentNode->localVars->title);
|
||||
CString WizTitle = theInterpreter->replaceVars(TempTitle,NULL);
|
||||
SetForegroundWindow();
|
||||
(AfxGetMainWnd( ))->SetWindowText(CurrentNode->localVars->title);
|
||||
(AfxGetMainWnd( ))->SetWindowText(WizTitle);
|
||||
if (!(CurrentNode->isWidgetsSorted)) {
|
||||
SortWidgetsForTabOrder();
|
||||
}
|
||||
|
|
|
@ -169,6 +169,7 @@ CString CInterpret::replaceVars(char *str, char *listval)
|
|||
char *b = buf;
|
||||
char *v;
|
||||
CString v1;
|
||||
char x[MIN_SIZE];
|
||||
|
||||
while (*str)
|
||||
{
|
||||
|
@ -179,13 +180,17 @@ CString CInterpret::replaceVars(char *str, char *listval)
|
|||
str++;
|
||||
if (*str == '%')
|
||||
{
|
||||
*str = '\0';
|
||||
// *str = '\0';
|
||||
|
||||
if (listval && strlen(n) <= 0)
|
||||
int len = (strchr(n,'%') - n);
|
||||
strncpy(x,n,len);
|
||||
x[len]=NULL;
|
||||
|
||||
if (listval && strlen(x) <= 0)
|
||||
v = listval;
|
||||
else
|
||||
{
|
||||
WIDGET *w = theApp.findWidget(n);
|
||||
WIDGET *w = theApp.findWidget(x);
|
||||
if (w)
|
||||
{
|
||||
if (w->control && w->control->m_hWnd)
|
||||
|
|
Загрузка…
Ссылка в новой задаче