Archive: Window notifications - Callbacks - etc


Window notifications - Callbacks - etc
Hi All,

I am trying to track down a problem in UMUI, and well, now a problem with UMUI with the ToggleInstFiles plugin.

Specifically, this plugin:
http://nsis.sourceforge.net/ToggleInstFiles_plug-in

After adjusting the C++ code to work with UMUI, (the button and progress bar need to be pushed down further), I have what I want things to look like.

But this now brings up the problem mentioned in a different thread.

The UMUI interface does NOT seem to get window events when things have changed on a specific window.
(Because UMUI needs to be able to redraw things, like colors, etc)

The other thread:
http://forums.winamp.com/showthread....hreadid=269345

Which leads to my real question...

How does a plugin, say, ToggleInstFiles, or other plugin that mucks with the Window and changes positions of the various dialogs on said window, how does/should the Plugin "notify" the running script (UMUI.nsh, MUI.nsh, etc, etc) of this change?

Is there a specific callback routine that should be triggered?
Should a message be sent?
Say something like NSIS does when the mouse goes over a selection?
(ie, .onMouseOverSection) ?

Thanks!
Scott


The script shouldn't usually care about UI changes. If a button moves, the script doesn't need to know about.

What's your specific problem? I can't really understand without more details. Though at first glance, it looks like somewhere in the code, SetWindowPos is called to change the position of controls without SWP_NOZORDER.


Kichik,

You *are* good!

Thats exactly it.

I tossed in SWP_NOACTIVATE|SWP_NOSIZE|SWP_NOZORDER
and bingo, the redraw problems went away.

Thanks!
Scott