RichEdit subclassing problem, can't call Default Proc. Programming Software Development by killdude69 …procedure because I don't know it's name. The RichEdit (RichEdit 3.0) is not doing anything because I can'… [code=cplusplus] // Main Window Procedure switch(message) { case WM_CREATE: { // Declare RichEdit: hRichEdit SetWindowLongPtr(hRichEdit, GWLP_WNDPROC, (LONG_PTR)MyRichEditProc); // This works fine } break… RichEdit and Autoscroll Programming Software Development by lapassion Hello everyone... I'm having a problem with RichEdit and its default scrolling behaviour. When a new line …is added to a RichEdit (via a Timer OnTimer event), it autoscrolls to the …ve tried to detect SB_LEFT, SB_LINELEFT... messages but it seems RichEdit's control doesn't send these messages but instead just… RichEdit 2.0 Control in ATL project Programming Software Development by SalvatMollet … ATL dll, under C++ VisualStudio 2008. I would include an RichEdit 2.0 Control in an AxDialogImpl dialog. To use… RichEdit 2.0 it is needed call AfxInitRichEdit2(). I did it … of errors. Anybody knows if it is possible to use RichEdit 2.0 with ATL projects? RichEdit printing! Programming Software Development by sixstorm1 … everyone, I am trying to print content from a Win32 richedit control, but it doesn't work. The text wraps to… of the page, and after printing, the text in the richedit is also messed up (word wrap to the half width… adding more then 65,535 characters to richedit Programming Software Development by crunchycoder … = LoadLibrary("Riched32.dll"); HWND RichEdithWnd = CreateWindowEx(WS_EX_CLIENTEDGE, "RichEdit", "", WS_CHILDWINDOW | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_HSCROLL | WS_VSCROLL |… made a function to add a single line to the richedit control like this [code] void AddLinetoRichEdit(char* cpyText) { … Strange tab mismatch: RichEdit and DrawText Programming Software Development by devjeetroy …text editor with syntax highlighting. I'm subclassing richedit and using drawtext to overwrite(Exactly like in …is the full code: [CODE]HWND hWndEdit; //Handle to RichEdit Control HWND mhWnd; //Handle to main window HWND hWndStatus;…Screenshot[/URL] The text in black is by richedit and the one in red is using the drawtext… Re: adding more then 65,535 characters to richedit Programming Software Development by crunchycoder … wrapper and read somewhere else it was version2 of the richedit control...i was out of ideas and i have riched32… 1 at a time and adds each string to the richedit control then ExitThread(0) but about halfway through the looping… strings in the main window thread, it adds to the richedit the same way and it doesnt mess up halfway through… Win32 RichEdit ContextMenu and Click Tracking Problem Programming Software Development by killdude69 … up when you right click a RichEdit. I know how to create the…to check for when the user right-clicks RichEdit. This is what I have: [CODE=cpp…] case WM_CREATE: { // Create RichEdit Control // SetEventMask to ENM_MOUSEEVENTS } break; case WM_NOTIFY… Receiving vscroll events from a richedit control Programming Software Development by stinkypete … am trying to catch EN_VSCROLL (vertical scroll) messages from a richedit control. So far I have done the following: In the… form's oncreate: [CODE]int mask = SendMessage(richedit->Handle, EM_GETEVENTMASK, 0, 0); SendMessage(richedit->Handle, EM_SETEVENTMASK, 0, mask + ENM_SCROLL); Application… Re: adding more then 65,535 characters to richedit Programming Software Development by crunchycoder i figured it out...the problem was with using EM_SETSEL this is fine if there is less then 65535 charecters in the richedit box. use EM_EXSETSEL othewise EM_SETSEL is the 16bit version, limits (int)egers to 65,535 EM_EXSETSEL is the 32bit version, limits (int)egers to 4,294,967,295 hope somebody finds this usefull Re: Win32 RichEdit ContextMenu and Click Tracking Problem Programming Software Development by mitrmkar … { switch (uMsg) { case WM_CREATE: // ... create the richedit window here -> hWndRichEdit // set event mask ... SendMessage(hWndRichEdit…if(pF->msg == WM_RBUTTONDOWN) { // got WM_RBUTTONDOWN from the richedit window } } } break; } return DefWindowProc(hWnd, uMsg, wParam, … Re: Win32 RichEdit ContextMenu and Click Tracking Problem Programming Software Development by killdude69 …{ switch (uMsg) { case WM_CREATE: // ... create the richedit window here -> hWndRichEdit // set event mask ... SendMessage(…{ if(pF->msg == WM_RBUTTONDOWN) { // got WM_RBUTTONDOWN from the richedit window } } } break; } return DefWindowProc(hWnd, uMsg, wParam, … Re: Win32 RichEdit ContextMenu and Click Tracking Problem Programming Software Development by koushal.vv … we can do is to get the Crect [ cpoint ] of richedit box on the dialog, compare with the acutal piont then… Saving from a richedit to a txt file Programming Software Development by Fireprufe15 I want to save the contents of my richedit to a plain text file. With my current code, only …a partial of the richedit's text ends up in the plain text. Could you… I want to convert MFC RichEdit(with bitmaps) to API RichEdit(with bitmaps) Programming Software Development by lashatt2 … your control notification handler code here CreateFromFile("E:\\VC++\\RichEdit\\confused.bmp"); REOBJECT reobject; ZeroMemory(&reobject, sizeof(REOBJECT… Re: Win32 Print RichEdit to Printer Programming Software Development by TheNewKid … this function from the msdn docs to print from my richedit: BOOL PrintRTF(HWND hwnd, HDC hdc) { HDC hDC = hdc; DOCINFO… first time you print, but after it runs once the richedit gets a bit messed up and the words in it… Drop text on richedit Winapi Programming Software Development by strmstn Hi. I have a richedit control and when dropping text from another control I would like to change the format of that text. I wonder which messages I should trap or how to do this in plain Winapi. (I have already subclassed the pasting message) Thank you. Win32 Print RichEdit to Printer Programming Software Development by TheNewKid Hey guys, I have been looking around for a while but I can't seem to find any tutorial on how to print the contents of a RichEdit to a printer. Any help would be appreciated and if anyone has any links to a good tutorial please post them. Thanks! TheNewKid c++win32 - how can i get the X caret on richedit? Programming Software Development by cambalinho i'm trying getting the richedit caret positions. seems that i can't use the caret … Re: c++win32 - how can i get the X caret on richedit? Programming Software Development by cambalinho the GetCaretPos() don't works on richedit :( unless, first, i need recreate it? Re: RichEdit subclassing problem, can't call Default Proc. Programming Software Development by Ancient Dragon First call [URL="http://msdn.microsoft.com/en-us/library/ms633585(VS.85).aspx"]GetWindowLongPtr[/URL] to get a pointer to its defaultProc then call CallWindowProc() when appropriate. See the GWLP_WNDPROC option. Re: RichEdit and Autoscroll Programming Software Development by lapassion Help!!!! Anyone??? RichEdit multiple colours code not working! Programming Software Development by lukegw Everytime btnSendClick is execute, 2 messages will be added to the rich edit. The first needs to be of fixed values (BOLD, size 8 etc) The second needs to be changable by the user using a FontDialog box. This is my below code, but it doesnt quite work, it pretty much just ignores my FIXED settings!!! Help me please [CODE]procedure … Re: RichEdit multiple colours code not working! Programming Software Development by lukegw [QUOTE=lukegw;1207729] [CODE] edChat.Font := FontDialog1.Font; //assign to user values [/CODE][/QUOTE] This is the line that is causing my problem, now to find the SIMPLE solution haha Re: RichEdit multiple colours code not working! Programming Software Development by lukegw [CODE] SelAttributes.Name := FontDialog1.Font.Name;[/CODE] Told you it would be a simple solution, very silly mistake, won't be making that one in a hurry lol new to these properties :) Re: adding more then 65,535 characters to richedit Programming Software Development by Duoas The riched20.dll is just a wrapper for riched32.dll. The rich edit defaults to a limit. Try sending it the following message: [inlinecode]SendMessage(hwnd, EM_EXLIMITTEXT, 0, -1);[/inlinecode] Thereafter it shouldn't have limits. Hope this helps. Re: adding more then 65,535 characters to richedit Programming Software Development by Duoas Actually, I might have that backwards. Point is, if your system is configured correctly (and most are out of the box) then it won't matter which rich edit DLL you call. [EDIT] It is likely that the problem is not with the rich edit control but with the program using it. There is no way to [I]directly[/I] set a character index on huge texts with … Re: adding more then 65,535 characters to richedit Programming Software Development by Duoas Doh! :$ Nice catch! Re: Saving from a richedit to a txt file Programming Software Development by TrustyTony Where are you closing the file? Re: Saving from a richedit to a txt file Programming Software Development by Fireprufe15 Thank you, good sir. I can't believe I actually missed that...urgh I'm a noob...