|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Feb 2011
Posts: 2
|
![]()
!include "nsDialogs.nsh"
!include "winmessages.nsh" !include "logiclib.nsh" OutFile "test.exe" Page Custom pre var dialog var hwnd var button Function pre nsDialogs::Create 1018 Pop $dialog ${NSD_CreateCheckbox} 0 0 50% 6% "I do not quit" Pop $hwnd ${NSD_OnClick} $hwnd EnDisableButton nsDialogs::Show FunctionEnd Function EnDisableButton Pop $hwnd ${NSD_GetState} $hwnd $0 ${If} $0 == 1 Quit ;-----I do not quit ${EndIf} FunctionEnd Section "" SectionEnd Quit if you let me know how? Last edited by Seon-dong yeon; 15th February 2011 at 04:33. |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
|
Function EnDisableButton
${NSD_GetState} $hwnd $0 ${If} $0 = 1 Quit ;-----I do not quit ${EndIf} FunctionEnd Or try to replace "Quit" with "SendMessage $HWNDPARENT ${WM_CLOSE} 0 0" Contact me: 137729898@qq.com |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Feb 2011
Posts: 2
|
We've solved thanks!
|
![]() |
![]() |
![]() |
|
Tags |
command, nsdialogs, quit |
Thread Tools | Search this Thread |
Display Modes | |
|
|