Replaced SetDlgItemText by GetDlgItem
SendMessage WM_SETTEXT treats lParam as a string Added CreateFont git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@702 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
8402a41f75
commit
25e248b099
1 changed files with 121 additions and 91 deletions
|
@ -648,6 +648,11 @@ static int NSISCALL ExecuteEntry(entry *entries, int pos)
|
|||
process_string_fromtab(buf,parms[1]);
|
||||
process_string_fromtab(buf2,parms[2]);
|
||||
|
||||
if (myatoi(buf2)==WM_SETTEXT) {
|
||||
process_string_fromtab(buf3,parms[4]);
|
||||
b4=(int)buf3;
|
||||
}
|
||||
|
||||
if (which == EW_SENDMESSAGE) v=SendMessage((HWND)myatoi(buf),myatoi(buf2),b3,b4);
|
||||
else v=(int)FindWindowEx((HWND)b3,(HWND)b4,buf[0]?buf:NULL,buf2[0]?buf2:NULL);
|
||||
|
||||
|
@ -658,9 +663,14 @@ static int NSISCALL ExecuteEntry(entry *entries, int pos)
|
|||
case EW_ISWINDOW:
|
||||
if (IsWindow((HWND)process_string_fromtab_toint(parms[0]))) return parms[1];
|
||||
return parms[2];
|
||||
case EW_SETDLGITEMTEXT:
|
||||
process_string_fromtab(buf,parms[2]);
|
||||
SetDlgItemText(parms[0]?g_hwnd:m_curwnd,parms[1],buf);
|
||||
case EW_GETDLGITEM:
|
||||
myitoa(
|
||||
g_usrvars[parms[0]],
|
||||
(int)GetDlgItem(
|
||||
(HWND)process_string_fromtab_toint(parms[1]),
|
||||
process_string_fromtab_toint(parms[2])
|
||||
)
|
||||
);
|
||||
return 0;
|
||||
#endif
|
||||
#ifdef NSIS_SUPPORT_SHELLEXECUTE
|
||||
|
@ -1381,11 +1391,31 @@ static int NSISCALL ExecuteEntry(entry *entries, int pos)
|
|||
// Added by Ximon Eighteen 5th August 2002
|
||||
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
case EW_PLUGINCOMMANDPREP:
|
||||
// parms[0] = dll name
|
||||
|
||||
// $0 temp plug-ins dir
|
||||
if (!*plugins_temp_dir) mystrcpy(plugins_temp_dir,g_usrvars[0]);
|
||||
return 0;
|
||||
#endif // NSIS_CONFIG_PLUGIN_SUPPORT
|
||||
case EW_CREATEFONT:
|
||||
myitoa(
|
||||
g_usrvars[parms[0]],
|
||||
(int)CreateFont(
|
||||
process_string_fromtab_toint(parms[2]),
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
process_string_fromtab_toint(parms[3]),
|
||||
parms[4]&1,
|
||||
parms[4]&2,
|
||||
parms[4]&4,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
GetStringFromStringTab(parms[1])
|
||||
)
|
||||
);
|
||||
return 0;
|
||||
}
|
||||
my_MessageBox(STR(LANG_INSTCORRUPTED),MB_OK|MB_ICONSTOP);
|
||||
return EXEC_ERROR;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue