[ `and @ 14.11.2004. 22:24 ] @
Imam ovo : Code: char* buf; int len = GetWindowTextLength(GetDlgItem(hwnd,TxtBox)); buf = (char*)GlobalAlloc(GPTR, len + 1); GetDlgItemText(hwnd, TxtBox, buf, len + 1 ); SendMessage(edit_hwnd, WM_SETTEXT, 0,(LPARAM)(LPCTSTR)buf); // Upisi trazenu rec /*//////////////////////////////////////////////////////////////////////////////*/ HWND osmt = GetDlgItem(search_hwnd,150); char* buf2; int len2 = SendMessage(osmt,WM_GETTEXTLENGTH,0,0); buf2 = (char*)GlobalAlloc(GPTR, len2 + 1); SendMessage(osmt,WM_GETTEXT,len2,(LPARAM)(LPCTSTR)buf2); SetDlgItemText(hwnd,1003,LPCTSTR(buf2)); I uvek mi je rec kraca za jedno slovo ... zasto ? tnx |