16,551
社区成员
发帖
与我相关
我的任务
分享void CErtDlg::OnButton1()
{
CDialog::OnCancel();
ShellExecute(NULL,"open","::{20D04FE0-3AEA-1069-A2D8-08002B30309D}","","", SW_SHOW );
CWnd *pWnd =CWnd::GetForegroundWindow();
if (pWnd == NULL)
{MessageBox("1");return;}
CMenu *pMenu = pWnd->GetMenu();
if (pMenu == NULL)
{MessageBox("2");return;}
int a=pMenu->GetMenuItemCount();
CString str;
str.Format("%d",a);
MessageBox(str);
}