Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resourceless Dialogbox Pin
Jeremy Falcon19-May-03 7:00
professionalJeremy Falcon19-May-03 7:00 
GeneralRe: Resourceless Dialogbox Pin
S van Leent20-May-03 3:14
S van Leent20-May-03 3:14 
GeneralRichedit control font problem Pin
electronicman_x19-May-03 4:44
electronicman_x19-May-03 4:44 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 8:51
Beer19-May-03 8:51 
GeneralRe: Richedit control font problem Pin
electronicman_x19-May-03 10:18
electronicman_x19-May-03 10:18 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 10:19
Beer19-May-03 10:19 
GeneralRe: Richedit control font problem Pin
jhaga19-May-03 9:15
professionaljhaga19-May-03 9:15 
GeneralRe: Richedit control font problem Pin
Beer19-May-03 9:46
Beer19-May-03 9:46 
"One idea could be to try to find all CHARFORMAT PARAFORMAT or CHARFORMAT2 PARAFORMAT2 structures and modify their dwMask member. That would give you some control over what is changed."

???, it would only give it control if that CHARFORMAT was being selected into the A CRichEditCtrl.

dwMask should always be filled with all bit flags even if you're not using them,

CHARFORMAT cf;
cf.dwMask = CFM_COLOR | CFM_FACE | CFM_SIZE | CFM_BOLD | CFM_ITALIC | CFM_STRIKEOUT | CFM_UNDERLINE;

or the RTF box will inherit properties from the last CHARFORMAT that was selected into it, or default if none.

having all bitwise flags on dwMask then setting dwEffects to 0 like hmmm...( cf.dwEffects = 0; ) will kill all previous styles of the RTF selected font

This ensures that no other previous styles are lingering.

Alternatively, if you never change the font and are just using the RTF box because it has an autoscroll and CEdit doesn't, you can use SetFont(&CFont, TRUE), then you don't have to worry about all that crap.

hey
GeneralRe: Richedit control font problem Pin
jhaga19-May-03 11:18
professionaljhaga19-May-03 11:18 
GeneralDLLs dependences Pin
Anonymous19-May-03 4:35
Anonymous19-May-03 4:35 
GeneralRe: DLLs dependences Pin
Jeremy Falcon19-May-03 4:58
professionalJeremy Falcon19-May-03 4:58 
Generalvertical rebar Pin
edele19-May-03 4:33
edele19-May-03 4:33 
GeneralOnSize method Pin
Florin Ochiana19-May-03 4:25
Florin Ochiana19-May-03 4:25 
GeneralRe: OnSize method Pin
Martyn Pearson19-May-03 5:21
Martyn Pearson19-May-03 5:21 
Generalvector troubles Pin
aguest19-May-03 4:24
aguest19-May-03 4:24 
GeneralRe: vector troubles Pin
valikac19-May-03 5:43
valikac19-May-03 5:43 
GeneralRe: vector troubles Pin
aguest19-May-03 5:50
aguest19-May-03 5:50 
GeneralRe: vector troubles Pin
valikac19-May-03 6:50
valikac19-May-03 6:50 
GeneralInternationalization and Localization - questions on how to approach it Pin
Jim Crafton19-May-03 4:20
Jim Crafton19-May-03 4:20 
GeneralRe: Internationalization and Localization - questions on how to approach it Pin
Anonymous19-May-03 4:50
Anonymous19-May-03 4:50 
GeneralRe: Internationalization and Localization - questions on how to approach it Pin
Jim Crafton19-May-03 5:24
Jim Crafton19-May-03 5:24 
Generalget bytes sent while sending them with socket Pin
User 1605519-May-03 4:19
User 1605519-May-03 4:19 
GeneralRe: get bytes sent while sending them with socket Pin
valikac19-May-03 5:44
valikac19-May-03 5:44 
GeneralSave desktop's image Pin
Chintan19-May-03 3:53
Chintan19-May-03 3:53 
GeneralRe: Save desktop's image Pin
David Crow19-May-03 5:13
David Crow19-May-03 5:13 

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.