我编的程序的资源视图里面没有string table这个东西,听说这里面可以改,可我没有啊

解决方案 »

  1.   

    CWnd::MessageBox  第二个参数
    ::MessageBox     第三个参数
      

  2.   

    CString str("测试");MessageBox(NULL ,"有问题" ,str ,MB_OK)
      

  3.   

    int MessageBox(
      HWND hWnd,          // handle of owner window
      LPCTSTR lpText,     // address of text in message box
      LPCTSTR lpCaption,  // address of title of message box
      UINT uType          // style of message box
    );::MessageBox(NULL,"hello","标题",MB_OK);
      

  4.   

    如果要让所以的提示框标题都显示成一样的文字,该怎么做啊?我这里面messagebox语句太多了
      

  5.   

    MessageBox做成一个宏或内联函数
      

  6.   

    int MessageBox( LPCTSTR lpszText, LPCTSTR lpszCaption = NULL, UINT nType = MB_OK );Return ValueSpecifies the outcome of the function. It is 0 if there is not enough memory to create the message box.ParameterslpszTextPoints to a CString object or null-terminated string containing the message to be displayed.lpszCaptionPoints to a CString object or null-terminated string to be used for the message-box caption. If lpszCaption is NULL, the default caption “Error” is used.nTypeSpecifies the contents and behavior of the message box.
      

  7.   

    如果要让所以的提示框标题都显示成一样的文字,该怎么做啊?我这里面messagebox语句太多了
    ======================================
    加入字符串到String Table,
    在调用MessageBox的时候,调用LoadString,作为标题。
      

  8.   

    能具体点吗?我这里没有String table.
    所以我自己添加了一个进去,里面什么都没有,然后怎么做?自己定义个字符串吗?
      

  9.   

    我加了东西进去。value 1 ,caption ziyuan.然后怎么做啊?
      

  10.   

    没有STRING TABLE?晕,给你顶下。
      

  11.   

    谢谢啊。确实没有啊,我这个工程编完了发现就有Bitmap.dialog.version.晕了,不知道怎么弄啊