Ten post juz nie jest wazny, znalazlem odpowiedz na wszystkie swoje pytanai odnosnie tego komunikatu. Hm, wkleje dla tych, ktorzy mieliby jakies problemy.
case IDM_EMFIND:
FINDTEXT lpF;
DWORD dwCurPos;
//CHARRANGE chrg;
LPSTR lpFindText;
lpFindText="you";
lpF.chrg.cpMin=0;
lpF.chrg.cpMax=-1;
lpF.lpstrText=lpFindText;
SetFocus(hEdit);
dwCurPos=SendMessage(hEdit, EM_FINDTEXT,(WPARAM) (UINT) 0,(LPARAM)
&lpF);
SendMessage(hEdit, EM_SETSEL, dwCurPos,
dwCurPos+strlen(lpFindText));
break;
case IDM_GETSELTEXT:
char lpBuf[80];
SendMessage(hEdit, EM_SETSEL, (WPARAM) (INT) 2,(LPARAM) (INT) 10);
SendMessage(hEdit, EM_GETSELTEXT, 0,(LPARAM) (LPSTR) lpBuf);
MessageBox(hWnd, lpBuf, "Show text", MB_OK);
break;