Re-create the progress window with additional properties, the code below shows how to add a stop button on title bar.
var win = $.messager.progress({
title:'Please waiting',
msg:'Loading data...'
});
win.window({
tools:[{
iconCls:'icon-cancel',
handler:function(){
$.messager.progress('close');
//other code here
}
}]
});