lovespy108
21st September 2007 05:22 UTC
About GetDlgItem?
When I define a custom page,how I can confirm the dialog controls' ID?for example,I add bitmap,Text,Lable controls on my own page.How to know their IDs.
In System.nsh, "1028,1256,1035,1037,1038,1038,1045" denote which controls IDs respectively?
Thanks to reply!
***********************************************************
LockWindow on
GetDlgItem $0 $HWNDPARENT 1028
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1256
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1035
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1037
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1038
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1039
ShowWindow $0 ${SW_HIDE}
GetDlgItem $0 $HWNDPARENT 1045
ShowWindow $0 ${SW_NORMAL}
LockWindow off
****************************************************:p
Afrow UK
21st September 2007 11:13 UTC
With InstallOptions it's 1200 + Field # - 1.
For everything else, open up Contrib\UIs\modern.exe in Resource Hacker.
Stu
lovespy108
21st September 2007 11:43 UTC
Thank you.But If the page is difined by myself.How to know mypage's $HWNDPARENT and the control(Text,Lable,and so on) IDs On mypage
**********************************
page custom mypage ""
Function mypage
.....
Functionend
***********************************
Comm@nder21
21st September 2007 12:28 UTC
if you created a custom page with installoptions, you have a .ini file for it.
Function mypage
SetOutPath $PLUGINSDIR
File "yourfile.ini"
FunctionEnd
on runtime, you can read the handle of each control from its HWND setting:
ReadINIStr $0 "$PLUGINSDIR\yourfile.ini" "Field 1" "HWND"
ShowWindow $0 ${SW_HIDE}
and so on...
CancerFace
21st September 2007 15:18 UTC
Also, AutoIt comes with a handy tool called Au3Info which provides a GUI with information on anything you can point your mouse at.
CF