Section check marks are now changeable in .onNextPage/.onPrevPage after/before the components page. Code size is down by 12 bytes because of this :)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1195 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
7bad50337c
commit
349dc153b1
1 changed files with 5 additions and 3 deletions
|
@ -950,12 +950,16 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
static HIMAGELIST hImageList;
|
static HIMAGELIST hImageList;
|
||||||
HWND hwndCombo1 = GetUIItem(IDC_COMBO1);
|
HWND hwndCombo1 = GetUIItem(IDC_COMBO1);
|
||||||
HWND hwndTree1 = GetUIItem(IDC_TREE1);
|
HWND hwndTree1 = GetUIItem(IDC_TREE1);
|
||||||
|
extern HWND g_SectionHack;
|
||||||
if (uMsg == WM_INITDIALOG)
|
if (uMsg == WM_INITDIALOG)
|
||||||
{
|
{
|
||||||
int doLines=0;
|
int doLines=0;
|
||||||
HTREEITEM Par;
|
HTREEITEM Par;
|
||||||
HBITMAP hBMcheck1;
|
HBITMAP hBMcheck1;
|
||||||
int x;
|
int x;
|
||||||
|
|
||||||
|
g_SectionHack=hwndDlg;
|
||||||
|
|
||||||
if (hTreeItems) GlobalFree(hTreeItems);
|
if (hTreeItems) GlobalFree(hTreeItems);
|
||||||
hTreeItems=(HTREEITEM*)my_GlobalAlloc(sizeof(HTREEITEM)*num_sections);
|
hTreeItems=(HTREEITEM*)my_GlobalAlloc(sizeof(HTREEITEM)*num_sections);
|
||||||
|
|
||||||
|
@ -1132,10 +1136,7 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
}
|
}
|
||||||
#if defined(NSIS_SUPPORT_CODECALLBACKS) && defined(NSIS_CONFIG_COMPONENTPAGE)
|
#if defined(NSIS_SUPPORT_CODECALLBACKS) && defined(NSIS_CONFIG_COMPONENTPAGE)
|
||||||
{
|
{
|
||||||
extern HWND g_SectionHack;
|
|
||||||
g_SectionHack=hwndDlg;
|
|
||||||
ExecuteCodeSegment(g_inst_header->code_onSelChange,NULL);
|
ExecuteCodeSegment(g_inst_header->code_onSelChange,NULL);
|
||||||
g_SectionHack=0;
|
|
||||||
}
|
}
|
||||||
#endif//NSIS_SUPPORT_CODECALLBACKS && NSIS_CONFIG_COMPONENTPAGE
|
#endif//NSIS_SUPPORT_CODECALLBACKS && NSIS_CONFIG_COMPONENTPAGE
|
||||||
{
|
{
|
||||||
|
@ -1241,6 +1242,7 @@ static BOOL CALLBACK SelProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||||
if (hImageList) ImageList_Destroy(hImageList);
|
if (hImageList) ImageList_Destroy(hImageList);
|
||||||
if (hTreeItems) GlobalFree(hTreeItems);
|
if (hTreeItems) GlobalFree(hTreeItems);
|
||||||
hTreeItems=0;
|
hTreeItems=0;
|
||||||
|
g_SectionHack=0;
|
||||||
}
|
}
|
||||||
if (uMsg == WM_IN_UPDATEMSG)
|
if (uMsg == WM_IN_UPDATEMSG)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue