no more /UNLOAD with new plug-in api

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5844 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-12 19:31:52 +00:00
parent 06ab0c6314
commit 3db2839a3c
9 changed files with 65 additions and 36 deletions

View file

@ -98,10 +98,17 @@ DWORD WINAPI BannerThread(LPVOID lpParameter)
return 0;
}
void __declspec(dllexport) show(HWND hwndParent, int string_size, char *variables, stack_t **stacktop)
static UINT_PTR PluginCallback(enum NSPIM msg)
{
return 0;
}
void __declspec(dllexport) show(HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra)
{
EXDLL_INIT();
extra->RegisterPluginCallback(hInstance, PluginCallback);
{
DWORD dwThreadId;
DWORD dwMainThreadId = GetCurrentThreadId();

View file

@ -9,9 +9,9 @@ OutFile "Banner Test.exe"
ShowInstDetails show
Function .onInit
Banner::show /NOUNLOAD "Calculating important stuff..."
Banner::show "Calculating important stuff..."
Banner::getWindow /NOUNLOAD
Banner::getWindow
Pop $1
again:

View file

@ -8,9 +8,9 @@ There are three functions - show, getWindow and destroy.
Usage
-----
Banner::show /NOUNLOAD "Text to show"
Banner::show "Text to show"
[optional] Banner::getWindow /NOUNLOAD
[optional] Banner::getWindow
Banner::destroy
@ -21,7 +21,7 @@ Modern UI
The Modern UI has two labels on the IDD_VERIFY dialog. To change all the texts, use:
Banner::show /NOUNLOAD /set 76 "Text 1 (replaces Please wait while Setup is loading...)" "Normal text"
Banner::show /set 76 "Text 1 (replaces Please wait while Setup is loading...)" "Normal text"
Custom UI
---------
@ -30,7 +30,7 @@ If you have more labels on your IDD_VERIFY dialog, you can use multiple /set par
Example:
Banner::show /NOUNLOAD /set 76 "bah #1" /set 54 "bah #2" "Normal text"
Banner::show /set 76 "bah #1" /set 54 "bah #2" "Normal text"
The second parameter for /set is the ID of the control.
@ -39,7 +39,7 @@ Some More Tricks
If you use /set to set the main string (IDC_STR, 1030) you can specify a different string for the window's caption and for the main string.
If you use an empty string as the main string (Banner::show /NOUNLOAD "") the banner window will not show on the taskbar.
If you use an empty string as the main string (Banner::show "") the banner window will not show on the taskbar.
Credits
-------