- lLineLength = 0L;
- return lLineLength;
-} // end of wxComboBox::GetLastPosition
-
-void wxComboBox::Replace(
- long lFrom
-, long lTo
-, const wxString& rsValue
-)
-{
-#if wxUSE_CLIPBOARD
- HWND hWnd = GetHwnd();
-
- //
- // Set selection and remove it
- //
- ::WinSendMsg(hWnd, EM_SETSEL, MPFROM2SHORT((USHORT)lFrom, (USHORT)lTo), 0);
- ::WinSendMsg(hWnd, EM_CUT, (MPARAM)0, (MPARAM)0);
-
- //
- // Now replace with 'value', by pasting.
- //
- wxSetClipboardData( wxDF_TEXT
- ,(wxObject *)rsValue.c_str()
- ,0
- ,0
- );
-
- //
- // Paste into edit control
- //
- ::WinSendMsg(hWnd, EM_PASTE, (MPARAM)0, (MPARAM)0L);
-#endif
-} // end of wxComboBox::Replace
-
-void wxComboBox::Remove(
- long lFrom
-, long lTo
-)
-{
-#if wxUSE_CLIPBOARD
- HWND hWnd = GetHwnd();
-
- ::WinSendMsg(hWnd, EM_SETSEL, MPFROM2SHORT((USHORT)lFrom, (USHORT)lTo), 0);
- ::WinSendMsg(hWnd, EM_CUT, (MPARAM)0, (MPARAM)0);
-#endif
-} // end of wxComboBox::Remove