I have a messaging toolbar created from a resource file as shown below. I am attempting to remove the middle ESmsViewerToolbarForward button and keep the ESmsViewerToolbarReply button on the left and the ESmsViewerToolbarDelete button on the right. However, when I attempt to remove or hide the middle ESmsViewerToolbarForward button the ESmsViewerToolbarDelete button on the right slides into the middle position. Is there any way to lock the button position and remove the middle button? I have tried modifying the resource file and also tried programmatically (itoolbar->RemoveItem and itoolbar->HideItem).
Thanks!

RESOURCE AVKON_TOOLBAR r_smsviewer_app_toolbar
{
flags = KAknToolbarFixed;
items =
{
TBAR_CTRL
{
type = EAknCtButton;
id = ESmsViewerToolbarReply;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_sms_tb_tooltip_reply;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_tb_msg_reply;
bmpmask = EMbmMuiuQgn_indi_tb_msg_reply_mask;
}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = ESmsViewerToolbarForward;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_sms_tb_tooltip_forward;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_tb_msg_forward;
bmpmask = EMbmMuiuQgn_indi_tb_msg_forward_mask;

}
};
};
},
TBAR_CTRL
{
type = EAknCtButton;
id = ESmsViewerToolbarDelete;
control = AVKON_BUTTON
{
flags = KAknButtonSizeFitText;
states =
{
AVKON_BUTTON_STATE
{
helptxt = qtn_sms_tb_tooltip_delete;
bmpfile = BITMAP_DIR"\\muiu.mif";
bmpid = EMbmMuiuQgn_indi_mg_tb_delete;
bmpmask = EMbmMuiuQgn_indi_mg_tb_delete;
}
};
};
}
};
}