AfxMessageBox("Message!");
在显示得时候,提示窗口上默认得标题是应用程序名称。
在SDI中,我知道在那里改。可是在Dialog应用程序中,我想改掉应该在那里改呀?谢谢!

解决方案 »

  1.   

    MessageBox(0,str,"标题内容",MB_ICONWARNING);
      

  2.   

    回上:
     如果是用MessageBox()当然可以啦,我是说如果用AfxMessageBox()的话,该怎么改?
      

  3.   


    可以用MessageBox嘛 :)
      

  4.   


    AfxMessageBox好像是不行的
      

  5.   

    AfxMessageBox("Message!",MB_OK|MB_ICONQUESTION);
    MB_ICONEXCLAMATION   An exclamation-point icon appears in the message box.
    MB_ICONINFORMATION   An icon consisting of an “i” in a circle appears in the message box.
    MB_ICONQUESTION   A question- icon appears in the message box.
    MB_ICONSTOP   A stop-sign icon appears in the message box
      

  6.   

    在你的app的InitInstance 加 m_pszAppName = _T("your app");
      

  7.   

    不用MessageBox,那就得自己做一个对话框了
      

  8.   


    MessageBox(0,str,"标题内容",MB_ICONWARNING);
    因为AfxMessageBox() 调用的就是  MessageBox ,
    不过他直接传入的应用程序的名称。是 MessageBox 的封装,为了在应用程序中使用方便!