Archive: AlwaysOnTop functionality


AlwaysOnTop functionality
Is there any support for AlwaysOnTop functionality? This would enable me to make sure that the installer window is never covered by any other windows that may appear while it is running.


You can call SetWindowPos using the System plug-in and pass HWND_TOPMOST to it.

!define HWND_TOPMOST -1
!define SWP_NOSIZE 1
!define SWP_NOMOVE 2
System::Call "user32::SetWindowPos(i $HWNDPARENT, i ${HWND_TOPMOST}, \
i0, i0, i0, i0, i ${SWP_NOSIZE}|${SWP_NOMOVE})"