ACAT.Lib.Core.Utility.User32Interop.MapVirtualKey C# (CSharp) 메소드

MapVirtualKey() 개인적인 메소드

private MapVirtualKey ( int uCode, int uMapType ) : int
uCode int
uMapType int
리턴 int
        public static extern int MapVirtualKey(int uCode, int uMapType);

Usage Example

예제 #1
0
파일: TextUtils.cs 프로젝트: zezo010/acat
 /// <summary>
 /// Returns if the specified key is printable or not
 /// </summary>
 /// <param name="key">key to check</param>
 /// <returns>true if it is</returns>
 public static bool IsPrintable(Keys key)
 {
     return(key == Keys.Enter || !char.IsControl((char)User32Interop.MapVirtualKey((int)key, 2)));
 }