Example #1
0
 //***********************************************************
 //			インスタンスの作成
 //-----------------------------------------------------------
 public IME(mwg.Windows.ControlA ctrl)
 {
     this.ctrl = ctrl;
     this.hWnd = ctrl.Handle;
     this.hImc = IME.ImmGetContext(hWnd);
     if (this.hImc == System.IntPtr.Zero)
     {
         //throw new System.Exception("mwg.WIndows.IME:インスタンス初期化に失敗しました");
         this.available = false;
         return;
     }
     this.position               = new System.Drawing.Point(0, 0);
     this.available              = true;
     this.cmpForm                = new COMPOSITIONFORM();
     this.cmpForm.dwStyle        = CFS.POINT;
     this.cmpForm.ptCurrentPos.X = 0;
     this.cmpForm.ptCurrentPos.Y = 0;
     ctrl.WindowProc            += new mwg.Windows.ControlA.WndProcEvent(ctrl_WindowProc);
 }
Example #2
0
 public StringDrawer(mwg.Windows.ControlA ctrl)
 {
     this.g = ctrl.CreateGraphicsBuf();
     ctrl.BufferImageRenew += new System.EventHandler(ctrl_BufferImageRenew);
     this.Initialize();
 }
Example #3
0
 public KeyManager(mwg.Windows.ControlA ctrl)
 {
     this.ctrl             = ctrl;
     this.ctrl.PreProcess += new mwg.Windows.ControlA.PreProcessEventHandler(ctrl_PreProcess);
     this.ctrl.WindowProc += new mwg.Windows.ControlA.WndProcEvent(ctrl_WindowProc);
 }
Example #4
0
 public KeyStatus(mwg.Windows.ControlA ctrl)
 {
     //ctrl.WindowProc+=new mwg.Windows.ControlA.WndProcEvent(ctrl_WindowProc);
 }