Old 29th September 2006, 13:47   #1
kthakrar
Junior Member
 
Join Date: Sep 2006
Posts: 1
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.
kthakrar is offline   Reply With Quote
Old 29th September 2006, 14:23   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
You can call SetWindowPos using the System plug-in and pass HWND_TOPMOST to it.
code:
!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})"


NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump