Archive: How to add Print Button in the license form?


How to add Print Button in the license form?
  Hi!

How to add Print Button in the license form?


Search the forum.

Stu


http://forums.winamp.com/showthread.php?t=317669

http://forums.winamp.com/showthread.php?t=228334

http://forums.winamp.com/showthread.php?t=274313


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:

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.