????? ??????? ????? ?? ???? ???? ???????

?????? ????????? ?????? ?????????
???? ???????: 109550 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

??????

??????? ????????? ???????? ??? Windows ?????? ???? ??????? ???? ????. ??? ????????? ????? ??????? ??? ????? ?? ??? ????? ???? ???? ????? ????? ?? ??????? ???? ???????. ???? ??????? ???????? ?????? ??? ?? Windows:
  • ?????? EM_SETSEL ?????? EM_REPLACESEL.
  • ??????? ????? EM_SETSEL ?????? ??????? ?????? ???? ??? ?????? ?????? ???? ???? ???????.

??????? ????

??????: ???? ???? ?????? ??????? ?????? EM_SETSEL ??????? ??? ????? 32-?? ??????? 16 ?? ???????? ???????? ??????? ?????? ??????? Win32 ?????? ?? ??? ??????? ??? ??? ??? ????? 16 ?? 32-??.

???? ??????? ??????? EM_SETSEL ??? ???? ???? ?? ???? ?? ???? ???? ????? Windows. ?? ???? ????? ???? ??????? ???????? ?????? ??? ??? ?????? ?? ????? ??? ??????? ?? ??? ????? ????? ?? ??? ??????. ??? ??? ????? ?? ????? ???? ?? ???? ???? ????? Windows ?????? ??????? ??? ???? ???? ??????? ?? ??? ???:
   HWND hEdit = GetDlgItem (hDlg, ID_EDIT);
   int ndx = GetWindowTextLength (hEdit);
   SetFocus (hEdit);
   #ifdef WIN32
      SendMessage (hEdit, EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
   #else
      SendMessage (hEdit, EM_SETSEL, 0, MAKELONG (ndx, ndx));
   #endif
????? ??? ??????? ?? ????? ?? ???? ???? ??????? ????? ??????? EM_REPLACESEL ?????? ???? ??? ???? ???? ???????. ???? ????? ????? EM_REPLACESEL ???????? ??????? ?????? ?? ???? ???? ????? ????? ?????? ?????? ????? lpszReplace (lParam). ???? ??? ???? ??????? ?????? ??? ????? ???? ?????? ?? ?????? ????? ??????? ??????. ????? ??????? ??? ????? ???? ???? ??????? ??? ?????? ?? ???? ???? ?? ?????? ??????:
   #ifdef WIN32
      SendMessage (hEdit, EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
   #else
      SendMessage (hEdit, EM_SETSEL, 0, MAKELONG (ndx, ndx));
   #endif
      SendMessage (hEdit, EM_REPLACESEL, 0, (LPARAM) ((LPSTR) szBuffer));
				
??? ????? ????? ?? ?? ???? ???? ????? ??????? ????? Windows. ??? ??? ??????? ??? ??????? ?? ??? ?????? ??? ??????? ??? ??? ???? ??? ??????? ? ?? ????? ??????? WM_PASTE ??? ???? ???? ??????? ?????? ????. ??????? ???? ????? ??? ?????? ?? ???????.

??? ????? ????? WM_PASTE ? ??? ??? ??? ??????? ?? ????? ?? ???? ???? ??????? ???????? ????? EM_SETSEL. ???? ????? ????????? ???????? "????" ???? ???? ????? ????? ??? ???????:
   OpenClipBoard () ;
   EmptyClipBoard() ;
   SetClipBoardData() ;

   #ifdef WIN32
      SendMessage (hEdit, EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
   #else
      SendMessage (hEdit, EM_SETSEL, 0, MAKELONG (ndx, ndx));
   #endif
      SendMessage (hEdit, WM_PASTE,   0, 0L);
				
????? ??? ????????? ???????? "????" ?? ??? ????? ???? ???? ???????. ?????? ??? ?? ???? ???????? ?? ??????? ?????? CF_TEXT.

???????

???? ???????: 109550 - ????? ??? ??????: 05/????? ???????/1426 - ??????: 1.3
????? ???
  • Microsoft Platform Software Development Kit-January 2000 Edition
  • Microsoft Windows Software Development Kit 3.1
????? ??????: 
kbmt kbctrl kbeditctrl kbhowto KB109550 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????109550

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com