Click here to Skip to main content
15,793,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
Richard Andrew x6417-Oct-21 15:50
professionalRichard Andrew x6417-Oct-21 15:50 
GeneralRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
ForNow17-Oct-21 16:31
ForNow17-Oct-21 16:31 
AnswerRe: Dialog GetClientRect vs RichEdit ClientRect doesnt seem correct Pin
Richard MacCutchan17-Oct-21 23:02
mveRichard MacCutchan17-Oct-21 23:02 
QuestionInserting a Bitmap into a RichEditctrl Pin
ForNow13-Oct-21 15:08
ForNow13-Oct-21 15:08 
SuggestionRe: Inserting a Bitmap into a RichEditctrl Pin
David Crow14-Oct-21 10:10
David Crow14-Oct-21 10:10 
GeneralRe: Inserting a Bitmap into a RichEditctrl Pin
ForNow14-Oct-21 10:49
ForNow14-Oct-21 10:49 
QuestionUnable to initialize of clear initial buffer or value of richeditcontrol Pin
ForNow7-Oct-21 14:15
ForNow7-Oct-21 14:15 
AnswerRe: Unable to initialize of clear initial buffer or value of richeditcontrol Pin
Richard MacCutchan7-Oct-21 22:53
mveRichard MacCutchan7-Oct-21 22:53 
C++
gprrichedit = new CRichEditCtrl;
CDialog::OnInitDialog();
gprrichedit->SetSel(0, -1);
gprrichedit->Clear();

You are creating a new RichEdit control so it will not contain any data, so no need to clear it. As to the other code you show above, I cannot understand what it is about; e.g:
C++
pbBuff = 0x000001d45061df80 "{\\rtf1\\ansi\\deff0{\\fonttbl{\\f0\\fnil\\fcharset0 Courier New;}}\r\n\\viewkind4\\uc1\\pard\\lang1033\\f0\\fs17

is not valid, since the parameter is a long integer.
GeneralRe: Unable to initialize of clear initial buffer or value of richeditcontrol Pin
ForNow7-Oct-21 22:58
ForNow7-Oct-21 22:58 
GeneralRe: Unable to initialize of clear initial buffer or value of richeditcontrol Pin
Richard MacCutchan7-Oct-21 23:34
mveRichard MacCutchan7-Oct-21 23:34 
GeneralRe: Unable to initialize of clear initial buffer or value of richeditcontrol Pin
ForNow8-Oct-21 0:12
ForNow8-Oct-21 0:12 
QuestionC language exercise - beginner Pin
Senhor League6-Oct-21 18:49
Senhor League6-Oct-21 18:49 
AnswerRe: C language exercise - beginner Pin
Victor Nijegorodov6-Oct-21 20:43
Victor Nijegorodov6-Oct-21 20:43 
AnswerRe: C language exercise - beginner Pin
CPallini6-Oct-21 23:46
mveCPallini6-Oct-21 23:46 
GeneralRe: C language exercise - beginner Pin
David Crow7-Oct-21 3:08
David Crow7-Oct-21 3:08 
AnswerRe: C language exercise - beginner Pin
jsc427-Oct-21 6:18
professionaljsc427-Oct-21 6:18 
GeneralRe: C language exercise - beginner Pin
Graham Breach7-Oct-21 12:30
Graham Breach7-Oct-21 12:30 
GeneralRe: C language exercise - beginner Pin
Bram van Kampen15-Oct-21 14:35
Bram van Kampen15-Oct-21 14:35 
GeneralRe: C language exercise - beginner Pin
Richard MacCutchan15-Oct-21 23:04
mveRichard MacCutchan15-Oct-21 23:04 
AnswerRe: C language exercise - beginner Pin
Bram van Kampen15-Oct-21 14:29
Bram van Kampen15-Oct-21 14:29 
Questiondata structure Pin
User 153459235-Oct-21 16:05
User 153459235-Oct-21 16:05 
AnswerRe: data structure Pin
Dave Kreskowiak5-Oct-21 18:11
mveDave Kreskowiak5-Oct-21 18:11 
AnswerRe: data structure Pin
Maximilien6-Oct-21 13:44
Maximilien6-Oct-21 13:44 
AnswerRe: data structure Pin
Bram van Kampen15-Oct-21 13:50
Bram van Kampen15-Oct-21 13:50 
QuestionRun powershell in C# Pin
jwradhe23-Sep-21 1:43
jwradhe23-Sep-21 1:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.