size optimization
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4481 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b682277db5
commit
df250ef20d
1 changed files with 5 additions and 2 deletions
|
@ -1101,7 +1101,9 @@ static void FORCE_INLINE NSISCALL RefreshComponents(HWND hwTree, HTREEITEM *item
|
|||
|
||||
item.state |= INDEXTOSTATEIMAGEMASK(state);
|
||||
|
||||
TreeView_Expand(hwTree, item.hItem, (flags & SF_EXPAND) ? TVE_EXPAND : TVE_COLLAPSE);
|
||||
// TVE_COLLAPSE = 1, TVE_EXPAND = 2
|
||||
TreeView_Expand(hwTree, item.hItem, TVE_COLLAPSE + ((flags & SF_EXPAND) / SF_EXPAND));
|
||||
|
||||
TreeView_SetItem(hwTree, &item);
|
||||
}
|
||||
|
||||
|
@ -1478,7 +1480,8 @@ void NSISCALL update_status_text(int strtab, const char *text) {
|
|||
new_item.pszText = tmp;
|
||||
new_item.iItem = ListView_GetItemCount(linsthwnd) - (updateflag & 1);
|
||||
new_item.iSubItem = 0;
|
||||
SendMessage(linsthwnd, (updateflag & 1) ? LVM_SETITEM : LVM_INSERTITEM, 0, (LPARAM) &new_item);
|
||||
// LVM_INSERTITEM - LVM_SETITEM = 1
|
||||
SendMessage(linsthwnd, LVM_INSERTITEM - (updateflag & 1), 0, (LPARAM) &new_item);
|
||||
ListView_EnsureVisible(linsthwnd, new_item.iItem, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue