Click here to Skip to main content
15,912,400 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRE: chars above 127 not geting printed Pin
Gary Menzel8-Dec-99 12:34
Gary Menzel8-Dec-99 12:34 
GeneralRE: RE: chars above 127 not geting printed Pin
dharam9-Dec-99 1:28
dharam9-Dec-99 1:28 
GeneralCList with user defined type is not working Pin
Benedikt Eckhard7-Dec-99 7:04
sussBenedikt Eckhard7-Dec-99 7:04 
GeneralRE: CList with user defined type is not working Pin
Member 103121488-Dec-99 8:56
Member 103121488-Dec-99 8:56 
GeneralRE: RE: CList with user defined type is not working Pin
Member 103121488-Dec-99 23:36
Member 103121488-Dec-99 23:36 
GeneralRE: RE: RE: CList with user defined type is not working Pin
Benedikt Eckhard9-Dec-99 8:28
sussBenedikt Eckhard9-Dec-99 8:28 
GeneralDynamic CEdit Control Pin
Amit Engineer6-Dec-99 23:43
Amit Engineer6-Dec-99 23:43 
Generalmirror image of a page (problem) Pin
Anonymous6-Dec-99 20:58
suss Anonymous6-Dec-99 20:58 
I am using StretchBlt to make a mirror image of the page.
While the normal page prints on when I try to use StretchBlt on this StretchBlt always return 1 but prints nothing. Pl. Help Me!. I am embeding the source func.

/* --------------------------------------------------- */
void CTprView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
int top,left,right,bottom;
RECT rt ;
pDC->SetMapMode (MM_ANISOTROPIC) ;
PrDC.SetMapMode (MY_MODE) ; // this is the CreatIC of the default printer driver
pDC->SelectObject (&pen) ;
PrDC.SelectObject (&pen) ;

top = TopMargin ;
left = (int)((LeftMargin * hPixPerMM) - (int)(hPixPerMM/1.5));
right = (int)((ColWith * 3.00) + (Gutter * 2.00) + (hPixPerMM * 1.5)) ;
bottom = (int)(vPixPerMM * m_PgLn);


if (m_mirror != TRUE) {
PreparePages (pDC, pInfo) ;
TestPage (pDC, pInfo) ;
} else {
MirrorDC.CreateCompatibleDC(pDC);
MirrorDC.SetMapMode (MY_MODE) ;
MirrorDC.SetTextColor (RGB (0,0,0));
MirrorDC.SetViewportOrg (0, 0) ;
MirrorDC.SetWindowOrg (0, 0) ;


PreparePages (&MirrorDC, pInfo) ; // if pages=1 then calculates pages into a CTypedPtrArray
TestPage (&MirrorDC, pInfo) ; // draws text,bitmaps & lines on the CDC provided
if (!IsInCalc) {
rt.top = top ;
rt.left = left;
rt.right = right;
rt.bottom = bottom;
PrDC.DPtoLP (&rt) ;
top=pDC->StretchBlt(left,top,right,-bottom,&MirrorDC,left,top,right,bottom,SRCCOPY);
CString cTmp ;
cTmp.Format("Ret. Value = %d", top) ;
MessageBox (cTmp, "S.Blt", MB_OK) ;
}
MirrorDC.DeleteDC ();
}
}
Generalarray[-1] Pin
Zerg6-Dec-99 18:36
Zerg6-Dec-99 18:36 
GeneralRE: array[-1] Pin
Mike Dunn6-Dec-99 20:52
Mike Dunn6-Dec-99 20:52 
GeneralRE: array[-1] Pin
Jesse Ezell14-Dec-99 14:51
Jesse Ezell14-Dec-99 14:51 
QuestionDisk space lists: any examples? Pin
Dean Edmonds5-Dec-99 13:58
sussDean Edmonds5-Dec-99 13:58 
GeneralDevStudio: AddToolSettings not recognized Pin
Dean Edmonds5-Dec-99 13:38
sussDean Edmonds5-Dec-99 13:38 
QuestionCVS addin? Pin
George5-Dec-99 5:18
George5-Dec-99 5:18 
AnswerRE: CVS addin? Pin
Member 48657-Dec-99 10:55
Member 48657-Dec-99 10:55 
AnswerRE: CVS addin? Pin
Neville Franks8-Dec-99 9:51
Neville Franks8-Dec-99 9:51 
QuestionHow to change mouse cursor when move mouse pass the button? Pin
Comp-devz4-Dec-99 21:02
sussComp-devz4-Dec-99 21:02 
AnswerRE: How to change mouse cursor when move mouse pass the button? Pin
Jeremy Davis6-Dec-99 2:43
Jeremy Davis6-Dec-99 2:43 
AnswerRE: How to change mouse cursor when move mouse pass the button? Pin
Gary Menzel8-Dec-99 12:42
Gary Menzel8-Dec-99 12:42 
GeneralQuestion about dll Pin
Roy Xu3-Dec-99 17:13
Roy Xu3-Dec-99 17:13 
GeneralRE: Question about dll Pin
Alex Gorev6-Dec-99 7:10
Alex Gorev6-Dec-99 7:10 
QuestionHow to make StatusBar tooltips? Pin
Stefan3-Dec-99 8:21
Stefan3-Dec-99 8:21 
AnswerRE: How to make StatusBar tooltips? Pin
Member 3646-Dec-99 6:47
Member 3646-Dec-99 6:47 
AnswerRE: How to make StatusBar tooltips? Pin
ac2718-Dec-99 4:07
sussac2718-Dec-99 4:07 
Generalwildcard matching with strings Pin
Thomas2-Dec-99 6:34
Thomas2-Dec-99 6:34 

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.