Click here to Skip to main content
15,921,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWH_JOURNALRECORD and WH_JOURNALPLAYBACK Pin
w200219-Nov-02 23:53
w200219-Nov-02 23:53 
GeneralCWebBrowser2 Control Question Pin
Anonymous19-Nov-02 23:49
Anonymous19-Nov-02 23:49 
GeneralRe: CWebBrowser2 Control Question Pin
Shaun Wilde20-Nov-02 1:22
Shaun Wilde20-Nov-02 1:22 
GeneralRe: CWebBrowser2 Control Question Pin
Anonymous22-Nov-02 2:44
Anonymous22-Nov-02 2:44 
GeneralRe: CWebBrowser2 Control Question Pin
Shaun Wilde22-Nov-02 5:25
Shaun Wilde22-Nov-02 5:25 
General::Postmessage(...) Pin
Raphael Kindt19-Nov-02 23:43
Raphael Kindt19-Nov-02 23:43 
GeneralRe: ::Postmessage(...) Pin
Hans Ruck20-Nov-02 1:03
Hans Ruck20-Nov-02 1:03 
GeneralIn what situation the winsock overlapped operation will return without complete the task Pin
Kerry Chou19-Nov-02 23:31
Kerry Chou19-Nov-02 23:31 
GeneralRe: In what situation the winsock overlapped operation will return without complete the task Pin
Jon Hulatt20-Nov-02 1:43
Jon Hulatt20-Nov-02 1:43 
QuestionHow to Get LPDRAWITEMSTRUCT from CWnd pointer? Pin
RuiSantiago19-Nov-02 23:31
RuiSantiago19-Nov-02 23:31 
AnswerRe: How to Get LPDRAWITEMSTRUCT from CWnd pointer? Pin
RuiSantiago20-Nov-02 1:47
RuiSantiago20-Nov-02 1:47 
GeneralMyPen.CreatePen(PS_COSMETIC|PS_ALTERNATE, 1, &logbr) fails in Win98 Pin
Daed19-Nov-02 22:31
Daed19-Nov-02 22:31 
GeneralRe: MyPen.CreatePen(PS_COSMETIC|PS_ALTERNATE, 1, &logbr) fails in Win98 Pin
KarstenK20-Nov-02 1:23
mveKarstenK20-Nov-02 1:23 
GeneralDocking bars and statusbar problem Pin
BishGada19-Nov-02 22:17
BishGada19-Nov-02 22:17 
GeneralRe: Docking bars and statusbar problem Pin
KaЯl20-Nov-02 0:09
KaЯl20-Nov-02 0:09 
GeneralRe: Docking bars and statusbar problem Pin
BishGada20-Nov-02 1:52
BishGada20-Nov-02 1:52 
GeneralRe: Docking bars and statusbar problem Pin
KaЯl20-Nov-02 2:16
KaЯl20-Nov-02 2:16 
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]

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.