Click here to Skip to main content
15,928,330 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionsdi: multiple frames within a view Pin
b_e_n_8231-Oct-06 7:12
b_e_n_8231-Oct-06 7:12 
AnswerRe: sdi: multiple frames within a view Pin
Mark Salsbery31-Oct-06 9:11
Mark Salsbery31-Oct-06 9:11 
GeneralRe: sdi: multiple frames within a view Pin
b_e_n_8231-Oct-06 9:53
b_e_n_8231-Oct-06 9:53 
AnswerAddition: sdi: multiple frames within a view Pin
b_e_n_8231-Oct-06 23:00
b_e_n_8231-Oct-06 23:00 
QuestionHelp! print issue Pin
hongmuer31-Oct-06 5:59
hongmuer31-Oct-06 5:59 
AnswerRe: Help! print issue Pin
bob1697231-Oct-06 6:52
bob1697231-Oct-06 6:52 
GeneralRe: Help! print issue Pin
hongmuer31-Oct-06 7:50
hongmuer31-Oct-06 7:50 
GeneralRe: Help! print issue Pin
bob1697231-Oct-06 8:31
bob1697231-Oct-06 8:31 
My intent was to demonstrate MM_ISOTROPIC which allows your document to be defined in some arbitrary world coordinate system. (i.e 100x200, 1200x2000, 3000x3000, etc...). Your graphics don't have to be shuffled around or resized when printing to different devices or viewed via the screen. Instead you adjust the ViewPort extent to adjust the output to fit the device you are rendering to. Remove the scrollview stuff if you need.

Your blit's should work just fine. Don't lock yourself into a mapping mode like MM_LOENGLISH, MM_HIMETRIC, etc... since your going to have to adjust your output anyway to fit different devices in a proportional manner. MM_ISOTROPIC will preserve your aspect ratio when MM_ANISOTRIPC will allow you to have any aspect ratio you want. However, MM_ANISOTROPIC will distort output at any ratio than the original so it is of little practical value in production apps unless your intent is to distort the output.

Try this, make a document that is 1000x1000. Do your blitting so your image is at some location in this grid and try the sample. You will see that the image is always in the same relative position to the document and any other drawing output in OnDraw. You don't need to change the position of the items being drawn. The sample will ensure it is adjusted for you.

I hope I'm understanding the problem correctly. If not, I apologize

GeneralRe: Help! print issue Pin
bob1697231-Oct-06 10:56
bob1697231-Oct-06 10:56 
GeneralRe: Help! print issue Pin
hongmuer1-Nov-06 15:50
hongmuer1-Nov-06 15:50 
GeneralRe: Help! print issue Pin
hongmuer1-Nov-06 16:30
hongmuer1-Nov-06 16:30 
GeneralRe: Help! print issue Pin
bob1697210-Nov-06 19:26
bob1697210-Nov-06 19:26 
QuestionVC++ MSN Client [modified] Pin
priyank_ldce31-Oct-06 5:40
priyank_ldce31-Oct-06 5:40 
AnswerRe: VC++ MSN Client Pin
Mark Salsbery31-Oct-06 5:49
Mark Salsbery31-Oct-06 5:49 
GeneralRe: VC++ MSN Client Pin
priyank_ldce31-Oct-06 5:57
priyank_ldce31-Oct-06 5:57 
QuestionMmm n00b question about File I/O Pin
Anthony Mushrow31-Oct-06 5:19
professionalAnthony Mushrow31-Oct-06 5:19 
AnswerRe: Mmm n00b question about File I/O Pin
David Crow31-Oct-06 5:23
David Crow31-Oct-06 5:23 
GeneralRe: Mmm n00b question about File I/O Pin
Anthony Mushrow31-Oct-06 6:31
professionalAnthony Mushrow31-Oct-06 6:31 
AnswerRe: Mmm n00b question about File I/O Pin
toxcct31-Oct-06 5:25
toxcct31-Oct-06 5:25 
QuestionHelp!(something about the pointer) Pin
wanlim081731-Oct-06 5:18
wanlim081731-Oct-06 5:18 
AnswerRe: Help!(something about the pointer) Pin
Anthony Mushrow31-Oct-06 5:22
professionalAnthony Mushrow31-Oct-06 5:22 
AnswerRe: Help!(something about the pointer) [modified] Pin
toxcct31-Oct-06 5:33
toxcct31-Oct-06 5:33 
AnswerRe: Help!(something about the pointer) Pin
David Crow31-Oct-06 5:36
David Crow31-Oct-06 5:36 
Generalconst or not ? Pin
toxcct31-Oct-06 5:41
toxcct31-Oct-06 5:41 
GeneralRe: const or not ? Pin
David Crow31-Oct-06 5:57
David Crow31-Oct-06 5:57 

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.