在DELPHI里如何用postmessage发送字符串, 如题,xxxx:='aaa';PostMessage(Application.MainForm.Handle,WM_SETSTATUSBAR,xxxx,0);结果失败,响应WM_SETSTATUSBAR的函数如何写 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, DB, ADODB, QuickRpt, ExtCtrls, QRCtrls, StdCtrls;const MY_MSG= WM_USER+100;type TForm1 = class(TForm) Panel1: TPanel; Panel2: TPanel; Button2: TButton; procedure Button2Click(Sender: TObject); procedure GetStrMsg(var Msg:TMessage);message MY_MSG; private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button2Click(Sender: TObject);begin PostMessage(Handle,MY_MSG,Integer(PChar('abcd')),0);end;procedure TForm1.GetStrMsg(var Msg: TMessage);begin Caption := string(Msg.WParam);end;end. var s: String;begin s := 'some string'; PostMessage(Handle, WM_SETSTATUSBAR, Integer(s), 0);end;消息处理函数中使用如下语句取得字符串: s := String(Msg.WParam); 如何用Idny UDPClient 发送record 有关checkbox空件。。。。 简单问题!!大放分! 有誰會用Microsoft office 自帶的BarCodeCtrl﹐或有更好用的條碼控件。 求救,散分拉 以下程序在2000下运行没问题,98下有异常。各位高手帮忙看看 我把报表转换为bmp图片再去打印,原来的纸就打印不下了,有什么办法解决呢? 校验法 怎样完成向导式,“上一步,下一步“式的窗口! C++builder到Delphi的转换! DELPHI中的删除问题~~~如果正确可以加分 DELPHI与DELPHI.NET有什么不一样
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DB, ADODB, QuickRpt, ExtCtrls, QRCtrls, StdCtrls;
const
MY_MSG= WM_USER+100;
type TForm1 = class(TForm)
Panel1: TPanel;
Panel2: TPanel;
Button2: TButton;
procedure Button2Click(Sender: TObject);
procedure GetStrMsg(var Msg:TMessage);message MY_MSG;
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button2Click(Sender: TObject);
begin
PostMessage(Handle,MY_MSG,Integer(PChar('abcd')),0);
end;procedure TForm1.GetStrMsg(var Msg: TMessage);
begin
Caption := string(Msg.WParam);
end;end.
s: String;
begin
s := 'some string';
PostMessage(Handle, WM_SETSTATUSBAR, Integer(s), 0);
end;消息处理函数中使用如下语句取得字符串:
s := String(Msg.WParam);