Click here to Skip to main content
15,915,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens28-Aug-03 8:44
Larry J. Siddens28-Aug-03 8:44 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
David Crow28-Aug-03 8:56
David Crow28-Aug-03 8:56 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens28-Aug-03 9:00
Larry J. Siddens28-Aug-03 9:00 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
David Crow28-Aug-03 9:09
David Crow28-Aug-03 9:09 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens28-Aug-03 9:33
Larry J. Siddens28-Aug-03 9:33 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
David Crow28-Aug-03 10:14
David Crow28-Aug-03 10:14 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens28-Aug-03 11:29
Larry J. Siddens28-Aug-03 11:29 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens28-Aug-03 15:34
Larry J. Siddens28-Aug-03 15:34 
I want to output the text in a rich edit control (there are many on the same page) with the same format and fonts usage as in the Rich Edit control. I thought I could use the FormatRange, but since I don't know what the target device is when it is being used, I'm not sure if that would work. So, I was getting one line at a time, then spending time to scan character by character checking the fonts used. When the font changs, then I would save off the font and the text. I continue until the whole line is scanned and getting the height of the text to the baseline. Setting the output to use the base line as the y parameter and outputting it to the device. This is so ineffecient it isn't funny. Am I correct in using FormatRange? OR, could I use FormatRange along with DisplayBand to output line by line. Again, inefficient than doing the whole thing, but it would be better than doing character by character.

Thanks Dave.
Larry

Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz



GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Steve S28-Aug-03 22:24
Steve S28-Aug-03 22:24 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens29-Aug-03 2:23
Larry J. Siddens29-Aug-03 2:23 
GeneralRe: Creating CRichEditCtrl Version 2.0/3.0 Pin
Larry J. Siddens29-Aug-03 5:22
Larry J. Siddens29-Aug-03 5:22 
GeneralExchanging Data Pin
Rage28-Aug-03 5:51
professionalRage28-Aug-03 5:51 
GeneralRe: Exchanging Data Pin
David Crow28-Aug-03 7:05
David Crow28-Aug-03 7:05 
GeneralRe: Exchanging Data Pin
Rage28-Aug-03 8:38
professionalRage28-Aug-03 8:38 
GeneralRe: Exchanging Data Pin
David Crow28-Aug-03 8:54
David Crow28-Aug-03 8:54 
GeneralTitle Bar Problems Pin
Lotonicus28-Aug-03 5:32
Lotonicus28-Aug-03 5:32 
GeneralRe: Title Bar Problems Pin
Alexander M.,28-Aug-03 11:03
Alexander M.,28-Aug-03 11:03 
GeneralRe: Title Bar Problems Pin
Bob Stanneveld29-Aug-03 4:32
Bob Stanneveld29-Aug-03 4:32 
GeneralNetUserEnum() return value where define Pin
Old Gun28-Aug-03 4:32
Old Gun28-Aug-03 4:32 
GeneralRe: NetUserEnum() return value where define Pin
jhwurmbach28-Aug-03 5:43
jhwurmbach28-Aug-03 5:43 
GeneralRe: NetUserEnum() return value where define Pin
David Crow28-Aug-03 7:09
David Crow28-Aug-03 7:09 
GeneralRe: NetUserEnum() return value where define Pin
Alexander M.,28-Aug-03 12:47
Alexander M.,28-Aug-03 12:47 
GeneralRe: NetUserEnum() return value where define Pin
Old Gun28-Aug-03 18:19
Old Gun28-Aug-03 18:19 
GeneralRe: NetUserEnum() return value where define Pin
jhwurmbach29-Aug-03 4:16
jhwurmbach29-Aug-03 4:16 
Generalpreventative directories Pin
will138328-Aug-03 4:31
will138328-Aug-03 4:31 

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.