I am trying to change the title in a custom dialog in my script but can't find the ID of the title. Could somebody please tell me how to do it? Thanks!
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

Change title in a custom dialog
Started by
isgeek
, Jun 19 2001 17:23
2 replies to this topic
Posted 20 June 2001 - 10:01
You don't have to know the ID if the dialog title.
Just use SetWindowText:
STRING szDlg[512];
HWND hwndDlg;
szDlg = "DialogName";
EzDefineDialog( szDlg, "", "", CUSTOM_DIALOG_ID );
hwndDlg = CmdGetHwndDlg( szDlg );
Then on DLG_INIT, call:
SetWindowText(hwndDlg, "The dialog Title");