Hi i am doing one application in which i want to display one CAknMessageQueryDialog and some user defined commands on it. I am invoking this dialog (i.e. calling ExecuteLD()) in the ProcesscommandL()
of another dialog. But problem is that its not displaying the command that i have added on CAknMessageQueryDialog . Its displaying the command of previous dialog itself.
my resource code is as follows:


RESOURCE MENU_BAR r_advertisement_detail_menupane_menubar
{
titles =
{
MENU_TITLE { menu_pane = r_advertisement_detail_menupane; }
};
}


RESOURCE MENU_PANE r_advertisement_detail_menupane
{
items =
{
// added the new Options menu command here
MENU_ITEM
{
command = EShowDetails;
txt = "Show Details";
}
};
}
RESOURCE DIALOG r_advertisement_detail_dlg
{
flags = EAknGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
items=
{
DLG_LINE
{
type = EAknCtPopupHeadingPane;
id = EAknMessageQueryHeaderId;
control = AVKON_HEADING
{
label = "The Heading";
headinglayout=R_AVKON_LIST_HEADING_PANE_POPUPS;
};
},
DLG_LINE
{
type = EAknCtMessageQuery;
id = EAknMessageQueryContentId;
control = AVKON_MESSAGE_QUERY
{
message = "Hi this is amit...";
};
}
};
}

can any one tell me why is it happening??
thanks in advance..