
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
Hello
You want to change the tittle of a dialog box with does not exist in
memory when you change it.
What do you do:
> void display_Dialog(ULong fpos)
> {
> DialogBox *db;
> sprintf(msg,"FilePos=%ld",fpos);
>
create dialogbox from resource
> db=mdlDialog_create(NULL,NULL,RTYPE_DialogBox,(int)DIALOGID_MsgBoxOK,FALSE);
> if(db)
> {
change this dialogbox in memory
> mdlWindow_titleSet(db,"File position");
open a modal dialog from resource (another copy) and diplsy it
> mdlDialog_openMessageBox(DIALOGID_MsgBoxOK,msg,MSGBOX_ICON_INFORMATION);
> or mdlDialog_openInfoBox(msg);
> }
what to do in my opnion:
1: set a timer function
2: open the message box
3: let te expire timer change the tittle of the dialog
Greetings Olaf
| <-- __Chronological__ --> | <-- __Thread__ --> |