size optimization - no need for GetDlgItem, WM_COMMAND comes with the lParam = HWND
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4853 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
60a6ec28cb
commit
b4a00a8ede
1 changed files with 3 additions and 4 deletions
|
@ -648,11 +648,10 @@ skipPage:
|
|||
if (uMsg == WM_COMMAND)
|
||||
{
|
||||
int id = LOWORD(wParam);
|
||||
HWND hCtl = GetDlgItem(hwndDlg, id);
|
||||
if (hCtl)
|
||||
if (lParam)
|
||||
{
|
||||
SendMessage(hCtl, BM_SETSTATE, FALSE, 0);
|
||||
if (!IsWindowEnabled(hCtl))
|
||||
SendMessage((HWND) lParam, BM_SETSTATE, FALSE, 0);
|
||||
if (!IsWindowEnabled((HWND) lParam))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue