|
-
February 12th, 2003, 07:10 AM
#1
Appending Text in RichEdit
Hello Everybody,
I have a problem how do i Append a string in an RichEdit box in Win32 API.
Thanking You,
Sonali.....
HAVE A GUD DAY!!!!!
-
February 12th, 2003, 08:32 AM
#2
SendMessage(hWnd, EM_SETSEL, - 1, 0);
SendMessage(hWnd, EM_REPLACESEL, (WPARAM)bCanUndo, (LPARAM)text);
I don't remember what exactly must be -1, 0 or 0, -1 in the first SendMessage.
Good luck
-
February 12th, 2003, 02:36 PM
#3
CHARRANGE cr;
cr.cpMin = -1;
cr.cpMax = -1;
SendMessage(hwnd, EM_EXSETSEL, 0, (LPARAM)&cr);
SendMessage(hwnd, EM_REPLACESEL, 0, (LPARAM)stringtoadd);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|