是否对话框:
if(IDYES == AfxMessageBox("对方请求悔棋,是否同意?",MB_YESNO))
{
for(i = 0; i < 9; i++)
for(j = 0; j <10; j ++)
{
Checkerboard[i][j] = TemCheckerboard[i][j];
}
CDC thmem7 ;
CClientDC dc(this);
thmem7.CreateCompatibleDC(&dc);
thmem7.SelectObject(m_board);
dc.BitBlt(0,0,460,525,&thmem7,0,0,SRCCOPY);
DoDraw();
GetDlgItem(IDC_HUIQI)->EnableWindow(false);
Pstatus = !Pstatus;
}
else
{
MessageBox(TEXT("对方不同意悔棋!"),"结果");
}