Hi!
How to add Print Button in the license form?
How to add Print Button in the license form?
4 posts
Search the forum.
Stu
Stu
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Hmm there are several good solutions [probably best is to use Reshacker and insert a button on License page] but is there any option to do it from code?
My idea is:
- we start with created dialog - standard License page [we can get it's HWND]
- then we create button with CreateWindow or CreateWindowEx http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
- then assign handler etc..
I think there is some way to do this, because nsDialogs use the same principe in it's CreateControl method:
Knows anybody how to achieve this?
Edit:
I tried it immediately, but it does not work 🙁
However in this topic: http://forums.winamp.com/showthread.php?t=159294 it is mentioned as working.
My idea is:
- we start with created dialog - standard License page [we can get it's HWND]
- then we create button with CreateWindow or CreateWindowEx http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx
- then assign handler etc..
I think there is some way to do this, because nsDialogs use the same principe in it's CreateControl method:
void __declspec(dllexport) CreateControl(HWND hwndParent, int string_size, char *variables, stack_t **stacktop, extra_parameters *extra)
hwItem = CreateWindowEx(
exStyle,
lstrcmpi(className, "LINK") ? className : "BUTTON",
text,
style,
x, y, width, height,
g_dialog.hwDialog,
(HMENU) (1200 + id),
g_hInstance,
NULL); Only difference is in dialog - nsDialogs create own dialog and here we should use predefined dialog.Knows anybody how to achieve this?
Edit:
I tried it immediately, but it does not work 🙁
However in this topic: http://forums.winamp.com/showthread.php?t=159294 it is mentioned as working.