ok done for the night. smaller code yay. 248 bytes left to remove from code to bring bzip2 mode down tho :(

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1108 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
justin1014 2002-09-21 06:54:02 +00:00
parent ec1144bf9e
commit c7876af9fc

View file

@ -1139,25 +1139,21 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
if ((TVHT_ONITEMSTATEICON|TVHT_ONITEMLABEL|TVHT_ONITEMRIGHT|TVHT_ONITEM) & ht.flags)
{
TVITEM hItem;
int image,wh;
hItem.hItem = ht.hItem;
hItem.mask = TVIF_STATE|TVIF_PARAM;
TreeView_GetItem(hwndTree1, &hItem);
image = hItem.state >> 12;
wh=hItem.lParam;
if (!(g_inst_section[wh].default_state&DFS_RO))
if (!(g_inst_section[hItem.lParam].default_state&DFS_RO))
{
if (image == 2) // already checked
if ((hItem.state >> 12) == 2) // already checked
{
g_inst_section[wh].default_state&=~DFS_SET;
g_inst_section[hItem.lParam].default_state&=~DFS_SET;
CheckTreeItem(hwndTree1,&hItem,0);
}
else
{
g_inst_section[wh].default_state|=DFS_SET;
g_inst_section[hItem.lParam].default_state|=DFS_SET;
CheckTreeItem(hwndTree1,&hItem,1);
}
#if defined(NSIS_SUPPORT_CODECALLBACKS) && defined(NSIS_CONFIG_COMPONENTPAGE)