几个常用的WINDOWS消息的值

本文列举了多个Windows消息常量,如键盘按键按下与释放、系统键按下与释放、鼠标移动及左、右键的不同状态等。这些常量用于Windows应用程序中处理不同类型的输入事件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 public   static   int   WM_KEYDOWN   =   0x0100;    
  public   static   int   WM_KEYUP   =   0x0101;    
  public   static   int   WM_SYSKEYDOWN   =   0x0104;    
  public   static   int   WM_SYSKEYUP   =   0x0105;    
   
  public   static   int   WM_MOUSEMOVE   =   0x0200;    
  public   static   int   WM_LBUTTONDOWN   =   0x0201;    
  public   static   int   WM_LBUTTONUP   =   0x0202;    
  public   static   int   WM_LBUTTONDBLCLK   =   0x0203;    
  public   static   int   WM_RBUTTONDOWN   =   0x0204;    
  public   static   int   WM_RBUTTONUP   =   0x0205;    
  public   static   int   WM_RBUTTONDBLCLK   =   0x0206;    
  public   static   int   WM_USER   =   0x0400;    
   
  public   static   int   MK_LBUTTON   =   0x0001;    
  public   static   int   MK_RBUTTON   =   0x0002;    
  public   static   int   MK_SHIFT   =   0x0004;    
  public   static   int   MK_CONTROL   =   0x0008;    
  public   static   int   MK_MBUTTON   =   0x0010;    
   
  public   static   int   MK_XBUTTON1   =   0x0020;    
  public   static   int   MK_XBUTTON2   =   0x0040;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值