Someone123
12th September 2010 09:31 UTC
Subclassing a Window
I want to subclass a control by a plugin for dynamic recoloring a lable. I use that code from the MSDN.
But my installer crashes after any click. Is it possible that NSIS calls a Plugin in a different process as the UI? I cannot find that in the NSIS source.
Afrow UK
12th September 2010 09:54 UTC
Lots of NSIS plug-ins sub class installer windows and other controls. Also: http://nsis.sourceforge.net/WndSubclass_plug-in
Stu
Someone123
12th September 2010 12:24 UTC
Thank you for your fast response. That looks almost what i want to do, but there is no c++ source code.
How did they managed it?^^
Afrow UK
12th September 2010 12:57 UTC
It's really not hard, even a lot of my plug-ins do it. Try the Linker plug-in which sub classes a static text.
Stu
Someone123
12th September 2010 13:30 UTC
i found my error. my plugin was simply unloaded. i had to implement a callback or to use the /NOUNLOAD switch.
MSG
12th September 2010 13:43 UTC
The /NOUNLOAD switch is deprecated. NSIS uses a new plugin model these days. You may have to update.
Someone123
12th September 2010 14:54 UTC
i use the callback :)