Questions tagged [richedit]

Questions involving the Windows Rich Edit control. This tag also applies when using wrappers around the underlying Rich Edit control (e.g. RichTextBox in WinForms, TRichEdit in VCL, RichEditBox in WinRT) when attempting to operate with the underlying control, or using features of the control.

285 questions
0
votes
1 answer

Why the value of parameter DWORD reco from IRichEditOleCallback::GetClipboardData is always RECO_COPY?

I thought the value of reco should be RECO_DRAG when I dragged sth. in my richedit, but in fact it always RECO_COPY. Is that normal or I had made mistakes?
KnowNothing
  • 121
  • 1
  • 11
0
votes
1 answer

How to change the size of activex control automatically?

I wrote an activex control for showing images in richedit.What i want is the control's size changes as the image in it changes, but the control's size seems to be fixed, i've no idea how to get it.Is there way to reach that?
KnowNothing
  • 121
  • 1
  • 11
0
votes
1 answer

c++ winapi impossible to create 2 controls

I'm trying to create window that contain richedit control and listbox control, the problem is that the second control which I create, doesn't show up. I mean: case WM_CREATE: // In main window procedure { /* Center the main window */ …
user2367115
  • 53
  • 3
  • 10
0
votes
3 answers

How to correctly handle Windows messages from an MSFTEDIT_CLASS (RichEdit) control?

UPDATE: As requested I have added all of the code I am using to create the Window and its RichEdit control. I'm trying to handle windows messages for a RichEdit control used as a child of another window. Now I did have the RichEdit control working…
Interminable
  • 1,338
  • 3
  • 21
  • 52
0
votes
1 answer

Create an Object Editor in C# for WinForms

I need to find, or create an editor that will handle text and images as objects. For instance I have a 3 line string of text, to be able to move it around and position it within a canvas, also the ability to add an image, and possibly resize it…
D-S
  • 107
  • 2
  • 10
0
votes
2 answers

RichEdit.PlainText seems to not affect anything

I'm trying to write something like rtf editor in BCB6 and I've encountered such problem while trying to add table to my RichEdit1: RichEdit1->PlainText=true; AnsiString ret=RichEdit1->Text; ret.Insert(table, RichEdit1->SelStart); …
Pavlus
  • 1,651
  • 1
  • 13
  • 24
0
votes
1 answer

how to streamout wide string from richedit control?

This is my attempt and I don't know why EM_STREAMOUT returns question marks when encountering non-ascii chars. This code copies text from window and put it back again but this time as question marks only. #include #include…
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

overwriting CHARFORMAT2 struct with EM_GETCHARFORMAT result seems to destroy it, no formatting is shown

Creating fresh CHARFORMAT2W and playing with it goes without issue but then overwriting it with formatting from richedit control seems to damage the structure so it cannot be applied back. But no error is produced. #include #include…
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

Unable to preserve newlines in RichEdit

I'm having problems preserving newslines from a RichEdit control inside strings. What I'm doing is: Get text from RichEdit control Split everything delimited by a space Add some RTF formatting "Fuse" words back together Send text to control I'm…
user1233963
  • 1,450
  • 15
  • 41
0
votes
2 answers

Best algorithm for syntax highlight (WINAPI)

I write a program on WINAPI. I must to implement syntax highlight. At this moment the I using following algorithm: void PaintWords(const char *SearchWord,COLORREF rgb) { counter = TabCtrl_GetCurSel(TabControl_hWnd); ft.chrg.cpMin = 0; …
xrnd
  • 1
0
votes
2 answers

why adding text to RichEdit window freezes it?

Until I touch the richedit window by mouse its contents are live updated, but hovering the mouse over it turns arrow into hourglass cursor. The window then doesn't react to three or four consequent tries to move it by title bar. When it finally does…
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

why this richedit window doesn't show up when I put the code in class?

It compiles and runs with no error. The only thing is that the window doesn't show up. The destructor should stay forever until I close the window by mouse ? #include #include class richEdit { HWND richeditWindow; …
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

is it possible to redirect cout stream to a particular window(control) having the hwnd handle for it?

Possible Duplicate: Redirecting cout to a console in windows I've created a child richedit window with CreateWindow and I wonder is it possible to redirect all cout calls so text would appear in RichEdit controll instead of console ?
rsk82
  • 28,217
  • 50
  • 150
  • 240
0
votes
1 answer

Rich Text Editor--Issue in creating and maintaining bullet list

I have created a bullet list in my rich edit control, but I am facing below issue which I am trying to tell you in a sequence. press a bullet button to generate a bullet. Bullet list/paragraph will start like MS word. save the document. Reload the…
hitesh
  • 1
  • 2
0
votes
1 answer

Colour Change in Richedit Windowless operation

I am trying to achieve something similar to domain highlighting. I want part of my text in rich edit box to to be of different colour like we have in domain highlighting feature of IE. Issue : I know we have to first use EM_EXSETSEL to select the…
1 2 3
18
19