winapi - WPF: TextBox do not paste text on KeyDown (CTRL+V) event -
we have wpf window hosted in win32 window. implementation such when user presses ctrl+v, text in clipboard pasted textbox in keyup event , not in keydown event (due limitation textbox control when being hosted inside mfc). hence have overridden keyup event paste text.
however, in machines noticed text pasted twice on doing ctrl+v only once. on further investigation found pasted keydown (default window behaviour) , on keyup event (overridden us).
wondering why pasting on keyup in machine , in machine both keydown , keyup?
help appreciated.
-nayan
i think depend on control has focus when press ctrl+v.
if edit control has focus, wm_paste notification , default windowproc paste clipboard contents text box.
if control has focus, you'll need handle ctrl+v paste edit control.
Comments
Post a Comment