Jump to content


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

Change title in a custom dialog


2 replies to this topic

isgeek

isgeek
  • Members
  • 9 posts

Posted 19 June 2001 - 17:23

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!

Torgui

Torgui
  • Members
  • 27 posts

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");