• PUDN用户
    了解作者
  • C++ Builder
    开发工具
  • 558KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 29
    下载次数
  • 2005-07-19 21:06
    上传日期
一个专门用于VOD视频点播系统基于PS/2遥控器或面板的键值测试程序
键盘扫描码.rar
  • 键盘扫描码
  • U8_3_2.dfm
    3KB
  • KEYS03.ICO
    1.1KB
  • U8_3_2.ddp
    51B
  • P8_3_2.EXE
    491.5KB
  • P8_3_2.OBJ
    404.2KB
  • P8_3_2.CPP
    710B
  • P8_3_2.RES
    1.2KB
  • U8_3_2.CPP
    1.4KB
  • U8_3_2.obj
    434.3KB
  • P8_3_2.tds
    2.1MB
  • U8_3_2.h
    1.3KB
  • P8_3_2.BPR
    2.9KB
  • www.pudn.com.txt
    218B
内容介绍
//----------------- u8_3_2 ---------------------------------------------------------- #include <vcl.h> #pragma hdrstop #include "u8_3_2.h" //--------------------------------------------------------------------------- #pragma package(smart_init) #pragma resource "*.dfm" Tf8_3_2 *f8_3_2; //--------------------------------------------------------------------------- __fastcall Tf8_3_2::Tf8_3_2(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall Tf8_3_2::edtInputKeyDown(TObject *Sender, WORD &Key, TShiftState Shift) { edtInput->Text=""; lblCtrl->Caption=""; lblAlt->Caption=""; lblShift->Caption=""; if (Shift.Contains(ssAlt)) lblAlt->Caption="Alt"; if(Shift.Contains(ssShift)) lblShift->Caption="Shift"; if(Shift.Contains(ssCtrl)) lblCtrl->Caption="Ctrl"; lblChar->Caption=Char(Key); lblAsc->Caption=IntToStr(Key); lblKey->Caption=Key; } //--------------------------------------------------------------------------- void __fastcall Tf8_3_2::edtInputKeyPress(TObject *Sender, char &Key) { lblChar->Caption=Key; if (Key==13) lblChar->Caption="Enter" ; if (Key==27) lblChar->Caption="ESC" ; if (Key==20) lblChar->Caption="Space" ; lblChar->Caption=Char(Key); lblAsc->Caption=IntToStr(Key); } //---------------------------------------------------------------------------
评论
    相关推荐