![]() |
#1 |
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
SetWindowPos Not Work
Hi
i call to System plugin for move to installer to top and left screen and that work: HTML Code:
!include "WinMessages.nsh" Function .onGUIInit System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) i ($HWNDPARENT, 0, 0, 0, 0, 0, 0x201)" FunctionEnd Section SectionEnd And also other code WM "#Window Messages#" not work! where is the problem? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,350
|
Why the hell would changing the flags move it to the right? Go to MSDN and read what the flags mean.
To move the window to the top right you have to first find the size of the work area on that monitor and then move it to x,0 where x = workareaWidth - yourwindowWidth. IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|