Symbian 控件架构之对话框
2010-04-20 15:44:00 来源:WEB开发网RESOURCE DIALOG r_waitnote_load_image_note
{
flags=EAknWaitNoteFlags;
items =
{
DLG_LINE
{
type = EAknCtNote;
id = ENoteDlgCIdOpenImageNote;
control = AVKON_NOTE
{
layout = EWaitLayout;
singular_label = "load image ,please wait";
imagefile = "z:\systemdataavkon.mbm";
imageid = EMbmAvkonQgn_note_progress;
imagemask = EMbmAvkonQgn_note_progress_mask;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
};
}
};
}
在你的代码中加入:
CAknWaitNoteWrapper* waitNoteWrapper = CAknWaitNoteWrapper::NewL();
// Required reinterpret_cast as CAknWaitNoteWrapper inherits privately from CActive
CleanupStack::PushL(reinterpret_cast
TInt Result=0;
Result=waitNoteWrapper->ExecuteL(R_WAITNOTE_LOAD_IMAGE_NOTE, *this);
if (!Result ) // this is a blocking call, remember the wrapper isn't a dialog, so it
doesn't need the EEikDialogFlagWait flag to make it blocking
{
// Cancel
}
CleanupStack::PopAndDestroy();
}
更多精彩
赞助商链接