Skip to content
⌘ NSIS Forum Archive

Subclassing a Window

7 posts

Someone123#

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#
Lots of NSIS plug-ins sub class installer windows and other controls. Also: http://nsis.sourceforge.net/WndSubclass_plug-in

Stu
Someone123#
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#
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#
i found my error. my plugin was simply unloaded. i had to implement a callback or to use the /NOUNLOAD switch.
MSG#
The /NOUNLOAD switch is deprecated. NSIS uses a new plugin model these days. You may have to update.