procedure ShowMessage(const Msg: string);
begin
  ShowMessagePos(Msg, -1, -1);
end;
能详细说说吗?我希望得到很详细的说明,比如(const Msg: string)是什么意思。这是定义还是说明?

解决方案 »

  1.   

    const Msg: string, 是指Msg这个参数是常量,无法修改的。
    用在函数中可以提高运行效率.帮我的问题,UP一下吧,多谢.
    http://expert.csdn.net/Expert/topic/1135/1135866.xml?temp=.4175074
      

  2.   

    ShowMessagePos(Msg, -1, -1);为什么多了pos ,括号里面为什么有两个-1?
      

  3.   

    Call ShowMessagePos to display a simple message box with an OK button at a specified location. The name of the application's executable file appears as the caption of the message box.The Msg parameter is the message that appears in the message box. X and Y specify the screen coordinates where the message box should appear. A value of ? means that the message box can appear anywhere in the specified dimension.To display a message in a message box with other buttons, or with an icon, use the MessageDlg function.
      

  4.   

    Pos表示位置呀
    正数是实际位置
    负数是缺省位置(屏幕的中央)
      

  5.   

    showmessagepos是在指定的位置显示信息窗口
    比如showmessagepos('aaa',80,80),是在SCREEN的(80,80)位置显示信息框
    -1,-1是显示在中央