SendMessage 函数获取文本,最大的长度如何确定

SendMessage 函数获取文本,最大的长度怎么确定?
TCHAR buff[1024 * 100] = {0};
int i = SendMessage(hwnd,WM_GETTEXT,1024*100,(LPARAM)buff);

我打开的文本a.txt 有50kb但是上面的函数返回值一直为24992,是不是这个函数取得文本的长度也有限制?

谁明白这个函数啊?

------解决方案--------------------
这根你的a.txt有什么关系啊??
------解决方案--------------------
你打开文件那么就是去获取文件的长度啊,干嘛要用wm_gettext去获取.
另外你看看关于wm_gettext的remark
Rich Edit: If the text to be copied exceeds 64K, use either the EM_STREAMOUT or EM_GETSELTEXT message.


------解决方案--------------------
楼主把问题说清楚一点吧。。表示没看懂
------解决方案--------------------
LRESULT SendMessage(
HWND hWnd, // handle to destination window
UINT Msg, // message
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);

Return Values
The return value specifies the result of the message processing; it depends on the message sent.

这个返回值的意思有说是发送消息的长度吗?楼主不要理解错意思了!
返回值依赖于所发送的消息! 

可以测试下换个短点的字符串,看看返回值是否都是一样呢!?