我在delphi帮助中发现二个messagebox的帮助文件:
1.MessageBox(const Text, Caption: PChar; Flags: Longint = MB_OK): Integer;2.function MessageBox(const Text: WideString; const Caption: WideString = ''; Buttons: TMessageButtons = [smbOK]; Style: TMessageStyle = smsInformation; Default: TMessageButton = smbOK; Escape: TMessageButton
 = smbCancel): TMessageButton; 
请问二者的区别.还有我调用messagebox需要哪个unite

解决方案 »

  1.   

    use Windows 既可
    一个是delphi自己封装的 一个是标准的API 你根据参数就可以随意调用
      

  2.   

    messagebox('yyyyee','ooeieoeieo',MB_OK)使用,编译时提示"[Error] Unit1.pas(28): Incompatible types: 'HWND' and 'String'"
    请问原因
      

  3.   

    The value of the Text parameter is the message, which can be longer than 255 characters if necessary. Long messages are automatically wrapped in the message box. 以上这句话如何解释,还有wrap如何解释.
      

  4.   

    文本参数值是一个消息,这个消息如果需要可以超过255个字符。长消息(指前面所说的)将自动在消息框(message box)中换行。