怎样才能弹出待确认和取消的对话框,多谢!!

解决方案 »

  1.   

    ft...
    MessageBox
    AfxMessageBox
      

  2.   

    MessageBox,可以在style里加一点东西,比方有确认,取消按钮
      

  3.   

    MessageBox("嗨", "嗨!", MB_OKCANCEL|MB_ICONQUETION);
      

  4.   

    AfxMessageBox("Are you sure?", MB_OKCANCEL);Message_Box Types MB_ABORTRETRYIGNORE   The message box contains three pushbuttons: Abort, Retry, and Ignore. 
    MB_OK   The message box contains one pushbutton: OK. 
    MB_OKCANCEL   The message box contains two pushbuttons: OK and Cancel. 
    MB_RETRYCANCEL   The message box contains two pushbuttons: Retry and Cancel. 
    MB_YESNO   The message box contains two pushbuttons: Yes and No. 
    MB_YESNOCANCEL   The message box contains three pushbuttons: Yes, No, and Cancel. 
      

  5.   

    AfxMessageBox("Are you sure?", MB_OKCANCEL);
      

  6.   

    你要判断返回值
    IDOK,点了确定
    IDCANCEL,点了取消
      

  7.   

    To icr_mio:
         不好意思,分给光了,多谢了:)