Click here to Skip to main content
15,915,094 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalres: protocol Pin
Cristian Amarie7-Jun-04 3:02
Cristian Amarie7-Jun-04 3:02 
GeneralDeclaring a pointer to a class in VC++ Pin
Anonymous7-Jun-04 2:52
Anonymous7-Jun-04 2:52 
GeneralRe: Declaring a pointer to a class in VC++ Pin
RChin7-Jun-04 3:18
RChin7-Jun-04 3:18 
GeneralRe: Declaring a pointer to a class in VC++ Pin
Anonymous7-Jun-04 4:23
Anonymous7-Jun-04 4:23 
GeneralCWnd custom control in Toolbar Pin
hd447807-Jun-04 2:52
hd447807-Jun-04 2:52 
GeneralPrinting mirror image Pin
CodeHead7-Jun-04 2:13
CodeHead7-Jun-04 2:13 
GeneralRe: Printing mirror image Pin
Roger Allen7-Jun-04 2:56
Roger Allen7-Jun-04 2:56 
GeneralSetWorldTransform() not work for printing? Pin
CodeHead7-Jun-04 9:57
CodeHead7-Jun-04 9:57 
Thanks Roger,
This is what I was looking for! However, there appears to be some kind of bug in that, although the image is properly mirrored on the display, (text and lines), when I perform a print preview, the graphics are flipped properly, but the text is no longer mirrored. Text is only rotated 180 degrees instead of mirrored. I created a SDI test app and have the code listed below in OnDraw(). It just draws a triangle with a word at the left side. When mirrored, the word is properly printed backwards on the right side of the screen. In print preview, the triangle is still correct, but the text is no longer mirrored. Any ideas?
TIA
Eric
<br />
   pDC->SetMapMode(MM_TWIPS);<br />
   SetGraphicsMode(pDC->m_hDC, GM_ADVANCED);<br />
   XFORM XForm;<br />
   ::ZeroMemory(&XForm, sizeof(XFORM));<br />
   XForm.eM21 = 0;//shear<br />
   XForm.eM12 = 0;//shear<br />
   <br />
   XForm.eM11 = -1;<br />
   XForm.eM22 = 1;<br />
   XForm.eDx = 3000;<br />
   XForm.eDy = 0;//-1000;<br />
   SetWorldTransform(pDC->m_hDC, &XForm);<br />
<br />
   pDC->MoveTo(500, -300);<br />
   pDC->LineTo(1600, -100);<br />
   pDC->LineTo(1600, -1200);<br />
   pDC->LineTo(500, -300);<br />
   pDC->SetTextColor(RGB(0,0,0));<br />
<br />
   CFont num_font_upper;<br />
      num_font_upper.CreateFont(.4 * 1440 , 0, 0, 0, FW_NORMAL, FALSE, FALSE, 0,<br />
      ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS | CLIP_LH_ANGLES,<br />
      DRAFT_QUALITY, VARIABLE_PITCH |FF_SWISS, "Arial");         <br />
   CFont *pFont = pDC->SelectObject(&num_font_upper);<br />
   pDC->TextOut(500,-300, CString("test"));<br />
   pDC->SelectObject(pFont);<br />

GeneralCryptGetHashParam Pin
Ni@m7-Jun-04 0:41
Ni@m7-Jun-04 0:41 
GeneralRe: CryptGetHashParam Pin
Mike Dimmick7-Jun-04 4:57
Mike Dimmick7-Jun-04 4:57 
GeneralConstructor problem - setting members Pin
Anonymous7-Jun-04 0:16
Anonymous7-Jun-04 0:16 
GeneralRe: Constructor problem - setting members Pin
bneacetp7-Jun-04 0:29
bneacetp7-Jun-04 0:29 
GeneralRe: Constructor problem - setting members Pin
thowra7-Jun-04 1:01
thowra7-Jun-04 1:01 
GeneralCreate a GUID to uniquely identify a machine. Pin
Member 11501767-Jun-04 0:06
Member 11501767-Jun-04 0:06 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Anonymous7-Jun-04 1:58
Anonymous7-Jun-04 1:58 
GeneralRe: Create a GUID to uniquely identify a machine. Pin
Joel Lucsy8-Jun-04 2:59
Joel Lucsy8-Jun-04 2:59 
QuestionHow to set Font of CStatic Control through Program.. Pin
Sumit Kapoor6-Jun-04 23:59
Sumit Kapoor6-Jun-04 23:59 
AnswerRe: How to set Font of CStatic Control through Program.. Pin
bneacetp7-Jun-04 0:18
bneacetp7-Jun-04 0:18 
GeneralRe: Still not work...also Pin
Sumit Kapoor7-Jun-04 0:34
Sumit Kapoor7-Jun-04 0:34 
GeneralRe: Still not work...also Pin
Johan Rosengren7-Jun-04 3:26
Johan Rosengren7-Jun-04 3:26 
GeneralRe: Forget ALSO... Pin
Sumit Kapoor7-Jun-04 0:36
Sumit Kapoor7-Jun-04 0:36 
GeneralRe: Forget ALSO... Pin
jmkhael7-Jun-04 4:50
jmkhael7-Jun-04 4:50 
GeneralNavigating through CForimView controls Pin
dart136-Jun-04 23:59
dart136-Jun-04 23:59 
GeneralRe: Navigating through CForimView controls Pin
Johan Rosengren7-Jun-04 6:10
Johan Rosengren7-Jun-04 6:10 
GeneralRe: Navigating through CForimView controls Pin
dart138-Jun-04 1:07
dart138-Jun-04 1:07 

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.