Click here to Skip to main content
16,005,149 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralContextual menu Pin
bumper5-May-03 6:34
bumper5-May-03 6:34 
GeneralRe: Contextual menu Pin
David Crow5-May-03 7:00
David Crow5-May-03 7:00 
GeneralPrinting Pin
bumper5-May-03 6:29
bumper5-May-03 6:29 
GeneralRe: Printing Pin
Chris Losinger5-May-03 6:40
professionalChris Losinger5-May-03 6:40 
GeneralRe: Printing Pin
bumper5-May-03 6:54
bumper5-May-03 6:54 
GeneralRe: Printing Pin
basementman5-May-03 10:50
basementman5-May-03 10:50 
GeneralRe: Printing Pin
bumper6-May-03 1:22
bumper6-May-03 1:22 
GeneralCDC device resolution Pin
Chris Losinger5-May-03 5:55
professionalChris Losinger5-May-03 5:55 
i have a CRichEditCtrl that needs to render to a metafile DC. i create the metafile DC using a screen DC as the "reference device". then i render the contents of the rich text ctrl into the metafile using FormatRange/DisplayBand. the code i have works fine, with one catch:

if the vertical position of the text in the rich text ctrl is larger than the vertical resolution of the screen (ie. if i tell the rich text control to draw text into the metafile DC at (100,1000) and the screen is only 1152x864), the text is clipped. the rich text control is obviously looking at the screen DC resolution and saying "hmm, i must be off the bottom of this DC. there's no need to draw those characters". but, in fact, it's not out of bounds on the metafile DC, since that is created without a bounding rect.

so, my question is... is there a way to create an off-screen DC with an arbitrary height ?

remember, this isn't a CDC+CBitmap issue, this is a metafile DC; i don't think creating and selecting a large bitmap into the metafile DC is going to do anything but waste resources (could be wrong).

-c


GeneralProperty Pages Pin
De Nardis Andrea5-May-03 5:22
De Nardis Andrea5-May-03 5:22 
GeneralRe: Property Pages Pin
Joan M5-May-03 6:06
professionalJoan M5-May-03 6:06 
GeneralRe: Property Pages Pin
De Nardis Andrea5-May-03 6:42
De Nardis Andrea5-May-03 6:42 
GeneralRe: Property Pages Pin
G. Steudtel5-May-03 6:11
G. Steudtel5-May-03 6:11 
QuestionHow to retrieve complete network path Pin
Ivano5-May-03 4:55
Ivano5-May-03 4:55 
AnswerRe: How to retrieve complete network path Pin
David Crow5-May-03 5:04
David Crow5-May-03 5:04 
GeneralRe: How to retrieve complete network path Pin
Ivano5-May-03 5:10
Ivano5-May-03 5:10 
GeneralRe: How to retrieve complete network path Pin
David Crow5-May-03 5:14
David Crow5-May-03 5:14 
GeneralExecution problem with TrackPopupMenu, help !!! Pin
flybird5-May-03 4:53
flybird5-May-03 4:53 
GeneralRe: Execution problem with TrackPopupMenu, help !!! Pin
David Crow5-May-03 5:06
David Crow5-May-03 5:06 
GeneralRe: Execution problem with TrackPopupMenu, help !!! Pin
Hari Krishnan (Noida)5-May-03 21:45
Hari Krishnan (Noida)5-May-03 21:45 
General(Stupid?) vector problem Pin
david2625-May-03 4:35
david2625-May-03 4:35 
GeneralRe: (Stupid?) vector problem Pin
markkuk5-May-03 4:48
markkuk5-May-03 4:48 
Generalsend message from subclass to parent Pin
JensB5-May-03 3:36
JensB5-May-03 3:36 
GeneralRe: send message from subclass to parent Pin
Bartosz Bien5-May-03 3:49
Bartosz Bien5-May-03 3:49 
GeneralRe: send message from subclass to parent Pin
JensB5-May-03 4:02
JensB5-May-03 4:02 
GeneralRe: send message from subclass to parent Pin
Bartosz Bien5-May-03 4:13
Bartosz Bien5-May-03 4: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.