分享

delphi 调用QQ消息窗

 独孤求财 2012-03-20

delphi 调用QQ消息窗

时间:2011-5-26来源:yang 作者: peng点击: 29次

调用示例:
procedure TForm1.Button1Click(Sender: TObject);
var
  H: HWND;
  P: procedure(Title, Msg: String; IsExitProcess: Boolean = False;
               DelayTime: Integer = 7; uType: Integer = 64); stdcall;
begin
  H := LoadLibrary(PChar(‘QQMsg.dll‘));
  if H <> 0 then
  begin
    P := GetProcAddress(H, PChar(‘ShowQQMsg‘));
    if Assigned(P) then
      P(‘这不是一个QQ消息‘, ‘你可以设定该提示窗口显示的时间(默认为7秒)及图标。‘);
  end;
end;

也可作如下声明后再调用:
procedure ShowQQMsg(Title, Msg: String; IsExitProcess: Boolean = False;
DelayTime: Integer = 7; uType: Integer = 64); stdcall; external ‘QQMsg.dll‘;

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多