iMenuType in Long type
Method description
Invoke the Custom View Menu dialogExample code
CComPtr<ISmpOEM>
SmpOEM;
CComPtr<ISmpOEM> SmpOEM;
CString ViewMenuCheckBox="True" ;
if(ViewMenuCheckBox == "True")
{
SmpOEM->put_InvokeCustomViewMenuDlg(ID_VIEW_TOOLBAR_MAINTOOLBAR ,TRUE);
}
else
{
SmpOEM->put_InvokeCustomViewMenuDlg(ID_VIEW_TOOLBAR_MAINTOOLBAR ,FALSE);
}
if(ViewMenuCheckBox == "True")
{
SmpOEM->put_InvokeCustomViewMenuDlg(ID_VIEW_TOOLBAR_MAINTOOLBAR ,TRUE);
}
else
{
SmpOEM->put_InvokeCustomViewMenuDlg(ID_VIEW_TOOLBAR_MAINTOOLBAR ,FALSE);
}