Click here to Skip to main content
16,011,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General#pragma pack(push,n) Pin
Sirrius24-Sep-03 13:09
Sirrius24-Sep-03 13:09 
GeneralRe: #pragma pack(push,n) Pin
Larry J. Siddens24-Sep-03 13:18
Larry J. Siddens24-Sep-03 13:18 
GeneralRe: #pragma pack(push,n) Pin
Tim Smith24-Sep-03 13:38
Tim Smith24-Sep-03 13:38 
GeneralRe: #pragma pack(push,n) Pin
Sirrius24-Sep-03 15:15
Sirrius24-Sep-03 15:15 
GeneralLink error 2001 Pin
jimNLX24-Sep-03 11:38
jimNLX24-Sep-03 11:38 
GeneralRe: Link error 2001 Pin
Larry J. Siddens24-Sep-03 11:47
Larry J. Siddens24-Sep-03 11:47 
GeneralRe: Link error 2001 Pin
jimNLX25-Sep-03 4:18
jimNLX25-Sep-03 4:18 
GeneralWYSIWYG Setup Pin
Larry J. Siddens24-Sep-03 11:32
Larry J. Siddens24-Sep-03 11:32 
Just Thinking out loud.

Using that test code that I posted (posted over at www.codeguru.com), (I changed the mapping mode to MM_TWIPS and associated the rich edit with the printer) and created a new file. Created one text box, one line and placed the line on it. I then did a Print Preview and noticed where the line fell. I then saved the file, went to a different system running a different resolution and operating system. Ran the same program openning the same file. The text did exactly like it did before; BUT, when I did a print preview, the line was at the exact same location.

I wonder if to make something WYSIWYG from the display to the printer, is to make the display look like the printer! Using the MM_ANISOTRIPIC (or MM_ISOTROPIC), getting the printer's resolution and size (both in the vert/horz) and making the screen look the same way. So, when you draw a line/box/text on the screen, it will be placed in the same location and length as on the printer!

Any thoughts? Anyone?



Larry J. Siddens
Cornerstone Communications

TAME THE DOCUMENT MONSTER
www.unifier.biz



GeneralRe: WYSIWYG Setup Pin
Anthony_Yio24-Sep-03 16:49
Anthony_Yio24-Sep-03 16:49 
GeneralRe: WYSIWYG Setup Pin
Larry J. Siddens25-Sep-03 2:30
Larry J. Siddens25-Sep-03 2:30 
QuestionCreate shortcut key ?? Pin
_skidrow_vn_24-Sep-03 11:24
_skidrow_vn_24-Sep-03 11:24 
AnswerRe: Create shortcut key ?? Pin
Anthony_Yio24-Sep-03 17:07
Anthony_Yio24-Sep-03 17:07 
AnswerRe: Create shortcut key ?? Pin
David Crow25-Sep-03 2:11
David Crow25-Sep-03 2:11 
AnswerRe: Create shortcut key ?? Pin
Larry J. Siddens25-Sep-03 11:03
Larry J. Siddens25-Sep-03 11:03 
QuestionHow to get BG color of Visual Studio .NET like tabs Pin
Joe Woodbury24-Sep-03 10:49
professionalJoe Woodbury24-Sep-03 10:49 
Generalconst Pin
act_x24-Sep-03 10:35
act_x24-Sep-03 10:35 
GeneralRe: const Pin
Dave Bryant24-Sep-03 11:19
Dave Bryant24-Sep-03 11:19 
GeneralRe: const Pin
Anthony_Yio24-Sep-03 17:12
Anthony_Yio24-Sep-03 17:12 
GeneralManually implement LVSCW_AUTOSIZE_USEHEADER Pin
Wim Jans24-Sep-03 10:32
Wim Jans24-Sep-03 10:32 
GeneralRe: Manually implement LVSCW_AUTOSIZE_USEHEADER Pin
David Crow24-Sep-03 10:39
David Crow24-Sep-03 10:39 
GeneralRe: Manually implement LVSCW_AUTOSIZE_USEHEADER Pin
Wim Jans24-Sep-03 10:49
Wim Jans24-Sep-03 10:49 
GeneralScrollbars in a dynamically changing dialog Pin
Member 53435724-Sep-03 10:15
Member 53435724-Sep-03 10:15 
GeneralVC++ Debugger Pin
yanmei24-Sep-03 9:56
yanmei24-Sep-03 9:56 
GeneralRe: VC++ Debugger Pin
Neville Franks24-Sep-03 10:22
Neville Franks24-Sep-03 10:22 
GeneralGetCheck w listboxctrl (has checkboxes) Pin
ns24-Sep-03 9:52
ns24-Sep-03 9:52 

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.