add OnClick for static controls

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5365 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-11-09 19:47:13 +00:00
parent 502e50c094
commit feb5dca48e

View file

@ -82,6 +82,11 @@ BOOL CALLBACK DialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
pushint((int) hwCtl);
g_pluginParms->ExecuteCodeSegment(ctl->callbacks.onChange - 1, 0);
}
else if (HIWORD(wParam) == STN_CLICKED && ctl->type == NSCTL_STATIC)
{
pushint((int) hwCtl);
g_pluginParms->ExecuteCodeSegment(ctl->callbacks.onClick - 1, 0);
}
break;
}