Archive: About GetDlgItem?


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


With InstallOptions it's 1200 + Field # - 1.
For everything else, open up Contrib\UIs\modern.exe in Resource Hacker.

Stu


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
***********************************


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...


Also, AutoIt comes with a handy tool called Au3Info which provides a GUI with information on anything you can point your mouse at.
CF