再问如何在showmessage中加入变量?

解决方案 »

  1.   

    ShowMessage没那么多功能.用MessageBox吧.
      

  2.   

    ShowMessage只有一个字符串的参数:
    用MessageBox
      

  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
    ) ;
    例如:
    Delphi:
    MessageBox(Form1.Handle, '找不到指定的文件。是否继续?', '警告',
    MB_YESNO+MB_ICONWARNING+MB_DEFBUTTON2+MB_SYSTEMMODAL)
      

  4.   

    使用messagebox函数就可以了,具体你可以查看帮助,里面的资料很全的呀!