case nMsg == WM_PASTE
if GetFocus() == ::hWnd
CallWindowProc( ::nOldProc, ::hWnd, WM_PASTE, 0, 0 )
#ifdef UTFREVN
if ::lWideChar
::oGet:buffer := ::GetText()
::oGet:pos := ::nPos := nHiWord( ::SendMsg( EM_GETSEL ) ) + 1
::SetText( ::oGet:buffer )
else
if ValType( ::oGet:Original ) $ "CM"
SetWindowText( ::hWnd, SubStr( GetWindowText( ::hWnd ), 1, Len( ::oGet:Original ) ) )
endif
::oGet:Buffer = GetWindowText( ::hWnd )
::oGet:Pos = nLoWord( ::SendMsg( EM_GETSEL ) ) + 1
endif
#else
if ValType( ::oGet:Original ) $ "CM"
SetWindowText( ::hWnd, SubStr( GetWindowText( ::hWnd ), 1, Len( ::oGet:Original ) ) )
endif
::oGet:Buffer = GetWindowText( ::hWnd )
::oGet:Pos = GetCaretPos()[ 2 ]
#endif
::oGet:UpdateBuffer() // New !!!
::Assign()
if ::bChange != nil
Eval( ::bChange,,, Self )
endif
endif
return 0
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 90 guests