Changing the label of a button in MessageDialog

Hi,

this is a code snippet for MDL.

If you wnat to change any content in the Default Message Box Dialog, this snippet would help.

int showMessageDialog(char* title,char *okcaption,char *cancelcaption,char *text,int icon) {

DialogBox *db=mdlDialog_create(NULL,NULL,RTYPE_DialogBox,(int)DIALOGID_MsgBoxOKCancel,FALSE) ;

if(db) {

//CHANGE THE ELEMENTS

mdlWindow_titleSet(db,title);

mdlDialog_itemSetLabel (db,3,okcaption);

mdlDialog_itemSetLabel (db,4,cancelcaption);

                       mdlDialog_itemsSynch(db);

}

ret=mdlDialog_openMessageBox (DIALOGID_MsgBoxOKCancel,text,icon);

}