Archive: Problem with ShowWindow, please help


Problem with ShowWindow, please help
Hi,

I have some problem with ShowWindow. I have 2 custom pages, one the first custom page, I disabled the "Next" button by doing
GetDlgItem $R0 $HWNDPARENT 3
ShowWindow $R0 ${SW_SHOWNOACTIVATE}

Somehow, on the 2nd custom page, the "Next" page is gone, even if I did
GetDlgItem $R0 $HWNDPARENT 3
ShowWindow $R0 ${SW_SHOW}
What's going on? How can I fix it? I'm using NSIS v2.0b1.

Thanks a lot


I figured it out. You can do

GetDlgItem $R0 $HWNDPARENT 3
ShowWindow $R0 5

to bring the button back. I don't know why by specifying ${SW_SHOW} did not work.


Did you include WinMessages.nsh?