Click here to Skip to main content
15,896,118 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalhelp! perhaps u can spot this... Pin
devvvy19-Nov-02 22:12
devvvy19-Nov-02 22:12 
GeneralRe: help! perhaps u can spot this... Pin
Shaun Wilde19-Nov-02 22:23
Shaun Wilde19-Nov-02 22:23 
GeneralRe: help! perhaps u can spot this... Pin
devvvy19-Nov-02 22:33
devvvy19-Nov-02 22:33 
GeneralRe: help! perhaps u can spot this... Pin
Shaun Wilde19-Nov-02 22:36
Shaun Wilde19-Nov-02 22:36 
GeneralRe: help! perhaps u can spot this... Pin
Shaun Wilde19-Nov-02 22:38
Shaun Wilde19-Nov-02 22:38 
GeneralRe: help! perhaps u can spot this... Pin
devvvy19-Nov-02 22:46
devvvy19-Nov-02 22:46 
GeneralRe: help! perhaps u can spot this... Pin
devvvy19-Nov-02 22:49
devvvy19-Nov-02 22:49 
GeneralRTF Formatting & preview Pin
Steve S19-Nov-02 22:06
Steve S19-Nov-02 22:06 
I'm using a CRichEditCtrl object as one of the many windows in an app, and now need to use print preview. I have other windows, such as grids, and everything works fine except....

I'm using RT v3.0 control under NT4/2000/XP. When I ask it to format for printing, the rendering dc and formatting dc are the same (m_hDC and m_hAttribDC respectively), and it looks OK. When I format it for preview, the rendering DC and formatting dc aren't the same (which you'd expect, I guess).
However, it consistently doesn't preview the final line on the 'page' (ie in the rect I've given it. Now I know that it's a preview, but my customers expect WYSIWYG, so they'll complain about missing lines;
I'm rendering to a memory dc and blitting, but I know it's not the blit doing the clipping, as this is 'transparent' to the printing (it's done in OnPrint for every page, and the rect for printing the RTF is way smaller than the page).

Can anyone point to an RTF rendering example that works with MFC's print preview (or not, if it renders to a memory dc!) that doesn't exhibit this problem?

I'm using FormatRange and DisplayBand to do the formatting and rendering, but MSDN seems pretty light on preconditions for these, doesn't mention stuff like mapping modes needed etc, although it seems that the DC has to be MM_TEXT before it works at all.

Steve S
[This signature space available for rent]
GeneralRe: RTF Formatting & preview Pin
Miguel Lopes20-Nov-02 4:51
Miguel Lopes20-Nov-02 4:51 
GeneralRe: RTF Formatting & preview Pin
Steve S20-Nov-02 5:04
Steve S20-Nov-02 5:04 
GeneralRe: RTF Formatting & preview Pin
Gary R. Wheeler20-Nov-02 14:02
Gary R. Wheeler20-Nov-02 14:02 
GeneralRe: RTF Formatting & preview Pin
Steve S20-Nov-02 21:52
Steve S20-Nov-02 21:52 
GeneralMaximize box Pin
suresh_sathya19-Nov-02 21:34
suresh_sathya19-Nov-02 21:34 
GeneralRe: Maximize box Pin
Paul M Watt19-Nov-02 22:15
mentorPaul M Watt19-Nov-02 22:15 
GeneralRe: Maximize box Pin
suresh_sathya19-Nov-02 22:22
suresh_sathya19-Nov-02 22:22 
GeneralWindow with multipe pages Pin
Luke Murray19-Nov-02 20:59
Luke Murray19-Nov-02 20:59 
GeneralRe: Window with multipe pages Pin
dima_t20-Nov-02 23:45
dima_t20-Nov-02 23:45 
Questioncan u use HRESULT_CODE in VC's tool "Error Lookup"? Pin
devvvy19-Nov-02 20:57
devvvy19-Nov-02 20:57 
AnswerRe: can u use HRESULT_CODE in VC's tool "Error Lookup"? Pin
Gary R. Wheeler20-Nov-02 14:08
Gary R. Wheeler20-Nov-02 14:08 
Generalexception for ADO recordset open method Pin
devvvy19-Nov-02 18:37
devvvy19-Nov-02 18:37 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:39
protectorChristian Graus19-Nov-02 19:39 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 19:44
devvvy19-Nov-02 19:44 
GeneralRe: exception for ADO recordset open method Pin
Christian Graus19-Nov-02 19:48
protectorChristian Graus19-Nov-02 19:48 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:06
devvvy19-Nov-02 20:06 
GeneralRe: exception for ADO recordset open method Pin
devvvy19-Nov-02 20:07
devvvy19-Nov-02 20:07 

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.