if wparam=111 then
begin
wparam=96 ;
result:=0;
end; ??
begin
wparam=96 ;
result:=0;
end; ??
解决方案 »
- 问几个关于多线程的基础,看谁能准确作答,急
- 如何从面板上删除一个控件
- 请问托盘怎么做呀
- Delphi可不可以访问EJB对象
- 你送我祝福,我捧上我的分+同样的祝福送给天下所有善良的人门!
- 菜鸟问题:怎么让主表单出现之前出现其他表单?
- (100分)谁有加密算法?不需要太复杂,但是一定要PASCAL描述的,急用,没工夫细细琢磨,拜托给为大虾。
- 来看俄罗斯方块源代码//全部不出900行
- Delphi能否开发B/S应用,如果能,那么与使用JBuilder开发B/S应用有什么异同点?
- 给客户做打印报表时,客户要求报表格式要能自定义,那自定义的报表该怎么做呢?
- 如何在网络中广播消息?
- 我的Windows 2000 Professinal 用不了Direct3D功能,怎么办?
TForm1 = class(TForm)
Edit1: TEdit;
procedure Edit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
procedure Edit1KeyPress(Sender: TObject; var Key: Char);
private
{ Private declarations }
m_bNot: Boolean;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if (Key = VK_DIVIDE) and (Shift = []) then
m_bNot := True;
end;procedure TForm1.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if m_bNot then
begin
Key := '0';
m_bNot := False;
end;
end;end.
if wparam=111 then
if lparam>0 then
begin
keybd_event(96,0,0,0);
result:=1;
end;