I'm not using (or familiar with) Rich Edit. Here's my dialog:
ID_PAGES_RESULTS DIALOG DISCARDABLE 0, 0, 500, 400
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Match Tracker Results"
FONT 9, "Lucida Console"
BEGIN
PUSHBUTTON "Close",ID_FILE_EXIT,50,380,40,14
PUSHBUTTON "Save As:",ID_FILE_SAVE,110,380,38,14
EDITTEXT IDC_TITLE,150,380,100,14, ES_AUTOHSCROLL
EDITTEXT IDC_RESULT,0,0,490,360,ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_WANTRETURN | ES_MULTILINE | WS_VSCROLL | WS_HSCROLL
END
and I invoke it via:
int ret = DialogBox(GetModuleHandle(NULL),
MAKEINTRESOURCE(ID_PAGES_RESULTS), hwnd, ResultsDlgProc);
I had read the following in your reference:
Edit controls on Windows 95/98/Me: For single-line edit controls, the text
limit is either 0x7FFE bytes or the value of the wParam parameter,
whichever is smaller. For multiline edit controls, this value is either
0xFFFF bytes or the value of the wParam parameter, whichever is smaller.
and, I had envisioned this program to possibly bring some older machines out of the closets for use at the competitions. Those old machines might just be running Win98
However, I would like to pursue this further, but I'm also short on time for the next few days.
I don't remember now what I had tried to make this work in a dialog, but if I get a chance, I'll jump in again and make some notes.
Thanks for all the help.
Edit for update:
This is the line I've tried in several places in my code:
SendMessage((HWND)ID_PAGES_RESULTS,EM_LIMITTEXT,15000,0);
No matter what value I try, the characters returned are a maximum of exactly 30000.
Take Care,
Ed