Click here to Skip to main content
15,887,888 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnPrint with MFC Pin
Mark Salsbery1-Nov-07 5:32
Mark Salsbery1-Nov-07 5:32 
GeneralRe: OnPrint with MFC Pin
mnnca2-Nov-07 10:16
mnnca2-Nov-07 10:16 
GeneralRe: OnPrint with MFC Pin
mnnca7-Nov-07 7:58
mnnca7-Nov-07 7:58 
GeneralRe: OnPrint with MFC Pin
Mark Salsbery7-Nov-07 9:45
Mark Salsbery7-Nov-07 9:45 
GeneralRe: OnPrint with MFC Pin
mnnca7-Nov-07 10:54
mnnca7-Nov-07 10:54 
GeneralRe: OnPrint with MFC Pin
Mark Salsbery7-Nov-07 11:04
Mark Salsbery7-Nov-07 11:04 
GeneralRe: OnPrint with MFC Pin
mnnca7-Nov-07 11:13
mnnca7-Nov-07 11:13 
GeneralRe: OnPrint with MFC Pin
Mark Salsbery7-Nov-07 11:31
Mark Salsbery7-Nov-07 11:31 
mnnca wrote:
Thanks for helping.


I think I've only provided emotional support LOL

Anyway, OnPrepareDC() is called before OnPrint() is repeatedly called for each page,
so you are overriding any map mode set in OnPrepareDC().

If you want to, you can remove the code you have in OnPrepareDC() and
replace it with the pDC->SetMapMode(MM_LOENGLISH); call.

This should work the same:
void CDISKVERView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo) 
{
   CFormView::OnPrepareDC(pDC, pInfo);

   pDC->SetMapMode(MM_LOENGLISH);
}

void CDISKVERView::OnPrint(CDC* pDC, CPrintInfo* pInfo /*pInfo*/)
{
   CDISKVERView::PrintPage( pDC, pInfo);
}
Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: OnPrint with MFC Pin
mnnca7-Nov-07 11:37
mnnca7-Nov-07 11:37 
GeneralRe: OnPrint with MFC Pin
Nelek1-Nov-07 22:00
protectorNelek1-Nov-07 22:00 
GeneralRe: OnPrint with MFC Pin
mnnca2-Nov-07 10:14
mnnca2-Nov-07 10:14 
QuestionHide cursor on CEdit? Pin
Gofur Halmurat31-Oct-07 6:41
Gofur Halmurat31-Oct-07 6:41 
QuestionRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 7:04
Mark Salsbery31-Oct-07 7:04 
AnswerRe: Hide cursor on CEdit? Pin
Gofur Halmurat31-Oct-07 7:07
Gofur Halmurat31-Oct-07 7:07 
GeneralRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 7:13
Mark Salsbery31-Oct-07 7:13 
GeneralRe: Hide cursor on CEdit? Pin
Gofur Halmurat31-Oct-07 7:16
Gofur Halmurat31-Oct-07 7:16 
GeneralRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 7:30
Mark Salsbery31-Oct-07 7:30 
GeneralRe: Hide cursor on CEdit? Pin
Gofur Halmurat31-Oct-07 9:10
Gofur Halmurat31-Oct-07 9:10 
GeneralRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 9:42
Mark Salsbery31-Oct-07 9:42 
GeneralRe: Hide cursor on CEdit? Pin
Gofur Halmurat31-Oct-07 10:08
Gofur Halmurat31-Oct-07 10:08 
QuestionRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 10:10
Mark Salsbery31-Oct-07 10:10 
QuestionRe: Hide cursor on CEdit? Pin
David Crow31-Oct-07 10:17
David Crow31-Oct-07 10:17 
AnswerRe: Hide cursor on CEdit? Pin
Mark Salsbery31-Oct-07 10:22
Mark Salsbery31-Oct-07 10:22 
AnswerRe: Hide cursor on CEdit? Pin
Gofur Halmurat1-Nov-07 0:17
Gofur Halmurat1-Nov-07 0:17 
QuestionRe: Hide cursor on CEdit? Pin
David Crow1-Nov-07 2:38
David Crow1-Nov-07 2:38 

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.