Click here to Skip to main content
13,804,094 members

C / C++ / MFC

 
AnswerRe: How to resolve such exception? Pin
Richard MacCutchan3-Dec-18 0:45
protectorRichard MacCutchan3-Dec-18 0:45 
AnswerRe: How to resolve such exception? Pin
Victor Nijegorodov3-Dec-18 1:50
memberVictor Nijegorodov3-Dec-18 1:50 
QuestionSMS Access Pin
Bram van Kampen2-Dec-18 16:20
memberBram van Kampen2-Dec-18 16:20 
AnswerRe: SMS Access Pin
Richard MacCutchan3-Dec-18 0:47
protectorRichard MacCutchan3-Dec-18 0:47 
GeneralRe: SMS Access Pin
Bram van Kampen3-Dec-18 15:52
memberBram van Kampen3-Dec-18 15:52 
GeneralRe: SMS Access Pin
leon de boer3-Dec-18 16:46
memberleon de boer3-Dec-18 16:46 
GeneralRe: SMS Access Pin
Richard MacCutchan3-Dec-18 22:49
protectorRichard MacCutchan3-Dec-18 22:49 
QuestionUsing a selection Pin
_Flaviu2-Dec-18 3:56
member_Flaviu2-Dec-18 3:56 
Hi. What MFC control should I use in order to put a text in such a way that some text should have different background color, and most important, there will be several selection in this text, all of them with the same background color ...

I have tried with CRichEditView, and I could set a text color for several selection, but not color for background, only for text:
SetWindowText(_T("Havecreatedonecomboclasstogetthecomboboxhandleandlistboxhandlevalue"));

CHARFORMAT cf;
cf.cbSize = sizeof(cf);
cf.dwMask = CFM_BOLD | CFM_COLOR;
cf.dwEffects = CFE_BOLD | ~CFE_AUTOCOLOR;

cf.crTextColor = RGB(0, 255, 0);
GetRichEditCtrl().SetSel(2, 5);
GetRichEditCtrl().SetSelectionCharFormat(cf);

cf.crTextColor = RGB(250, 55, 33);
GetRichEditCtrl().SetSel(10, 18);
GetRichEditCtrl().SetSelectionCharFormat(cf);

cf.crTextColor = RGB(250, 55, 33);
GetRichEditCtrl().SetSel(10, 18);
GetRichEditCtrl().SetSelectionCharFormat(cf);

GetRichEditCtrl().SetSel(-1, -1);

GetRichEditCtrl().SetReadOnly();

AnswerRe: Using a selection Pin
Victor Nijegorodov2-Dec-18 10:12
memberVictor Nijegorodov2-Dec-18 10:12 
GeneralRe: Using a selection Pin
_Flaviu3-Dec-18 0:24
member_Flaviu3-Dec-18 0:24 
QuestionTesting a CGI Pin
Bram van Kampen1-Dec-18 15:26
memberBram van Kampen1-Dec-18 15:26 
QuestionString In C++ Pin
Hack Baba1-Dec-18 4:30
memberHack Baba1-Dec-18 4:30 
QuestionRe: String In C++ Pin
CPallini1-Dec-18 5:49
mvpCPallini1-Dec-18 5:49 
AnswerRe: String In C++ Pin
Joe Woodbury1-Dec-18 8:03
professionalJoe Woodbury1-Dec-18 8:03 
GeneralRe: String In C++ Pin
Hack Baba2-Dec-18 22:54
memberHack Baba2-Dec-18 22:54 
GeneralRe: String In C++ Pin
jeron13-Dec-18 6:44
memberjeron13-Dec-18 6:44 
GeneralRe: String In C++ Pin
Hack Baba4-Dec-18 6:57
memberHack Baba4-Dec-18 6:57 
GeneralRe: String In C++ Pin
Hack Baba4-Dec-18 7:02
memberHack Baba4-Dec-18 7:02 
Questionstring array ? Pin
Vaclav_29-Nov-18 6:34
memberVaclav_29-Nov-18 6:34 
AnswerRe: string array ? Pin
Daniel Pfeffer29-Nov-18 6:59
professionalDaniel Pfeffer29-Nov-18 6:59 
GeneralRe: string array ? Pin
Vaclav_29-Nov-18 7:14
memberVaclav_29-Nov-18 7:14 
GeneralRe: string array ? Pin
leon de boer29-Nov-18 15:59
memberleon de boer29-Nov-18 15:59 
Questionabout deep learn Pin
Member 1406444226-Nov-18 20:08
memberMember 1406444226-Nov-18 20:08 
AnswerRe: about deep learn Pin
CPallini26-Nov-18 21:57
mvpCPallini26-Nov-18 21:57 
GeneralRe: about deep learn Pin
David Crow27-Nov-18 4:42
memberDavid Crow27-Nov-18 4:42 

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.


Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.181218.1 | Last Updated 19 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid