Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Catching clicking Pin
Peter Molnar29-Oct-03 14:27
Peter Molnar29-Oct-03 14:27 
Generalusing Indic scripts in MFC in Win2K Pin
sagmam28-Oct-03 5:00
sagmam28-Oct-03 5:00 
QuestionHow to open a file in a different directory Pin
Deepak Samuel28-Oct-03 4:37
Deepak Samuel28-Oct-03 4:37 
AnswerRe: How to open a file in a different directory Pin
sagmam28-Oct-03 5:02
sagmam28-Oct-03 5:02 
AnswerRe: How to open a file in a different directory Pin
valikac28-Oct-03 5:47
valikac28-Oct-03 5:47 
GeneralResolution Problems Pin
Bernhard28-Oct-03 3:32
Bernhard28-Oct-03 3:32 
GeneralFile open dialog misery Pin
Rick Dangerous28-Oct-03 3:28
Rick Dangerous28-Oct-03 3:28 
GeneralCRichEditCtrl a WYSIWYG Control -- Don't Think So! Pin
Larry J. Siddens28-Oct-03 3:24
Larry J. Siddens28-Oct-03 3:24 
I have been struggling over this and I have come to the conclusion that the CRichEditCtrl is NOT a true WYSIWYG control.

To see this, create a control that is say 4 inchs wide by 1 inch deep. Now use the SetTargetDevice to attach the control to your default printer, set the font of the control to be 12 pt Times New Roman. The only thing that SetTargetDevice will do is have the control look like it will print for the word break. It will not make the text within the control look like it will when it prints (spacing wise).

Now draw a rectangle around the control (have the rectangle several pixels bigger in each direction from the control, since the control will overwrite the rectangle on the screen if they are the same size.

If you type some text into the control, when it wraps, you may notice that where the text wraps and the area to the end of the control seems too big and could contain some text. When I first saw this, I was wondering if I didn't correctly calculate the width for the SetTargetDevice. But, when I printed, the text went up to the end of the control next to the right side of the rectangle (well, not all the way).

Now if anyone can show me how to make the text spacing within the control look like it will print, please do!



Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz
Generalunicode macro Pin
Anonymous28-Oct-03 3:16
Anonymous28-Oct-03 3:16 
GeneralRe: unicode macro Pin
Graham Bradshaw28-Oct-03 4:30
Graham Bradshaw28-Oct-03 4:30 
GeneralRe: unicode macro Pin
sagmam28-Oct-03 5:07
sagmam28-Oct-03 5:07 
QuestionHow to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 2:56
kotbegemot28-Oct-03 2:56 
AnswerRe: How to abort reading operation on blocking socket? Pin
valikac28-Oct-03 5:48
valikac28-Oct-03 5:48 
GeneralRe: How to abort reading operation on blocking socket? Pin
SLiDeR28-Oct-03 6:46
SLiDeR28-Oct-03 6:46 
GeneralRe: How to abort reading operation on blocking socket? Pin
kotbegemot28-Oct-03 21:38
kotbegemot28-Oct-03 21:38 
GeneralRichEdit 4.1 Pin
sagmam28-Oct-03 2:26
sagmam28-Oct-03 2:26 
GeneralRe: RichEdit 4.1 Pin
David Crow28-Oct-03 8:45
David Crow28-Oct-03 8:45 
GeneralRe: RichEdit 4.1 Pin
sagmam28-Oct-03 21:46
sagmam28-Oct-03 21:46 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:21
David Crow29-Oct-03 2:21 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:27
sagmam29-Oct-03 2:27 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 2:40
David Crow29-Oct-03 2:40 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 2:56
sagmam29-Oct-03 2:56 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 3:14
David Crow29-Oct-03 3:14 
GeneralRe: RichEdit 4.1 Pin
sagmam29-Oct-03 3:32
sagmam29-Oct-03 3:32 
GeneralRe: RichEdit 4.1 Pin
David Crow29-Oct-03 3:43
David Crow29-Oct-03 3: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.