예제 #1
0
 private void UpdateCaretSize()
 {
     if (_isCaretCreated)
     {
         User32PI.DestroyCaret();
         User32PI.CreateCaret(_control.Handle, IntPtr.Zero, _size.Width, _size.Height);
         if (_isCaretShown)
         {
             User32PI.ShowCaret(_control.Handle);
         }
     }
 }
예제 #2
0
 private void ShowCaret()
 {
     User32PI.ShowCaret(_control.Handle);
     _isCaretShown = true;
 }