VC++------------AfxMessageBox

来源:互联网 发布:常见心理疾病 知乎 编辑:程序博客网 时间:2024/05/16 06:05
int AfxMessageBox(   LPCTSTR lpszText,   UINT nType = MB_OK,   UINT nIDHelp = 0 );
if (IDYES== AfxMessageBox("是否关闭?" , MB_YESNO) )
IDABORT   Abort   button   was   selected.   
IDCANCEL   Cancel   button   was   selected.   
IDIGNORE   Ignore   button   was   selected.   
IDNO   No   button   was   selected.   
IDOK   OK   button   was   selected.   
IDRETRY   Retry   button   was   selected.   
IDYES   Yes   button   was   selected   

	
				
		
原创粉丝点击