SendMessage() приватный Метод

private SendMessage ( IntPtr hWnd, int msg, IntPtr wParam, COMPOSITIONFORM lParam ) : IntPtr
hWnd System.IntPtr
msg int
wParam System.IntPtr
lParam COMPOSITIONFORM
Результат System.IntPtr
Пример #1
0
 public void SetIMEWindowLocation(int x, int y)
 {
     if (Ime.disableIME || this.hIMEWnd == IntPtr.Zero)
     {
         return;
     }
     Ime.POINT pOINT = new Ime.POINT()
     {
         x = x,
         y = y
     };
     Ime.COMPOSITIONFORM cOMPOSITIONFORM = new Ime.COMPOSITIONFORM()
     {
         dwStyle      = 2,
         ptCurrentPos = pOINT,
         rcArea       = new Ime.RECT()
     };
     try
     {
         Ime.SendMessage(this.hIMEWnd, 643, new IntPtr(12), cOMPOSITIONFORM);
     }
     catch (AccessViolationException accessViolationException)
     {
         this.Handle(accessViolationException);
     }
 }
Пример #2
0
 private void SetIMEWindowFont(System.Drawing.Font f)
 {
     if (Ime.disableIME || this.hIMEWnd == IntPtr.Zero)
     {
         return;
     }
     if (this.lf == null)
     {
         this.lf = new Ime.LOGFONT();
         f.ToLogFont(this.lf);
         this.lf.lfFaceName = f.Name;
     }
     try
     {
         Ime.SendMessage(this.hIMEWnd, 643, new IntPtr(10), this.lf);
     }
     catch (AccessViolationException accessViolationException)
     {
         this.Handle(accessViolationException);
     }
 }