S>textRange.lpstrText = szStr; S>textRange.chrg.cpMin = 0; S>textRange.chrg.cpMax = -1; S>SendMessage(hWnd,EM_GETTEXTRANGE,0,(LPARAM)&textRange); S>