Archive: SetWindowPos API call.


SetWindowPos API call.
  I've got 2 Questions
I'm using the SetWindowPos API call.
My first custom page must use a smaller UI

This is the code

System::Call "User32::SetWindowPos(i, i, i, i, i, i, i) b ($HWNDPARENT, 0, 0, 0, 510, 230, ${SWP_NOZORDER}|${SWP_NOMOVE})" 
When changing the size my buttons are no longer there.
How do I reposition the back/next/etc button.

My second question is.
When using the code above how do I go back using the default, because exiting the first custom page to the second custompage (which has the defaultsize) it uses the same size as my first page.

Thx in advance

nobody ? :(


I'm afraid you should either wait for kichik here in forum or try to contact Anders at NSIS IRC channel,

irc://irc.cockos.com/nsis


OK
I'll be patient :)


Maybe I can help you in the 2nd, try to use the hole findwindow code, you know:


pseudo code

FindWindow$0 "class" "" $HWNDPARENT
>

What's the `b` type? SetWindowPos returns a BOOL which is actually an integer, so `i` should be used.


I found the api call on a wiki page. And they useb 'b'.
I changed 'b' to 'i' but it does its work the same. :)

But do you know how to change the location of the next and cancel buttons. I use installoptionsex with MUI.


Forget about SetWindowPos if you want to change the entire UI. Use Resource Hacker to edit Contrib\UIs\modern.exe, save a copy and use MUI_UI to tell the MUI to use your new UI.