bEnable判斷點卡充值平臺是否在遊戲中,遮蔽任務點卡充值

wen4414發表於2016-01-04

//CPlatformFrame.OnCommand

case IDC_NAVIGATION+2:  //傲付寶充值

{
//by caoyongrong 5/4/2015
//構造選單
CSkinMenu UserInfoMenu;
UserInfoMenu.CreateMenu();


UserInfoMenu.AppendMenu(IDM_MenuEBankRecharge,TEXT(“網銀充值”));
UserInfoMenu.AppendMenu(IDM_MenuAlipayRecharge,TEXT(“支付寶充值”));
UserInfoMenu.AppendMenu(IDM_MenuDiankaRecharge,TEXT(“點卡充值”));
bool bEnable=true;
bEnable=m_ServerViewItemArray.GetCount()>0?false:true;//判斷點卡充值平臺是否在遊戲中,遮蔽任務點卡充值
UserInfoMenu.EnableMenuItem(IDM_MenuDiankaRecharge,!bEnable);

UserInfoMenu.TrackPopupMenu(this);
return TRUE;

}


//將自動髮卡平臺改為模態框

CDlgDiankaView DlgDiankaView;
DlgDiankaView.DoModal();
//CDlgDiankaView *pDlgDiankaView=new CDlgDiankaView;
//pDlgDiankaView->Create(IDD_DLGDIANKAVIEW);
//pDlgDiankaView->ShowWindow(SW_SHOW);
//pDlgDiankaView->CenterWindow();



相關文章