Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralActiveX control for Ms Exchange Server info Pin
dels_cpp10-Jun-04 4:24
dels_cpp10-Jun-04 4:24 
GeneralDate/Time Picker 'Enter' key behavior Pin
JYoder10-Jun-04 4:11
JYoder10-Jun-04 4:11 
GeneralRe: Date/Time Picker 'Enter' key behavior Pin
bikram singh10-Jun-04 15:45
bikram singh10-Jun-04 15:45 
GeneralMoving dialog window Pin
marcomars10-Jun-04 3:44
marcomars10-Jun-04 3:44 
GeneralRe: Moving dialog window Pin
David Crow10-Jun-04 5:32
David Crow10-Jun-04 5:32 
GeneralRe: Moving dialog window Pin
Diddy10-Jun-04 5:35
Diddy10-Jun-04 5:35 
GeneralActive X Control Error Pin
Anonymous10-Jun-04 3:32
Anonymous10-Jun-04 3:32 
GeneralSetGraphicsMode bug? Please try this code Pin
CodeHead10-Jun-04 3:03
CodeHead10-Jun-04 3:03 
I am trying to figure out if this is a computer problem or a (another) bug in Windows. My ultimate goal is to print a mirror image of a calibration tape using SetWorldTransform. Displayed output is fine, but when printed, all text is simpy rendered upside-down. Simply calling SetGraphicsMode without any transforms causes the same bug! Can someone create a simple SDI app and past this code into the OnDraw function. You will get a triangle and the word 'test' displayed. Now do a print preview. Is the word 'test' now shown upside-down?
TIA
Eric

void CTransformView::OnDraw(CDC* pDC)<br />
{<br />
   pDC->SetMapMode(MM_LOENGLISH);<br />
   SetGraphicsMode(pDC->GetSafeHdc(), GM_ADVANCED);<br />
   pDC->MoveTo(150, -130);<br />
   pDC->LineTo(260, -110);<br />
   pDC->LineTo(260, -220);<br />
   pDC->LineTo(150, -130);<br />
   pDC->SetTextColor(RGB(0,0,0));<br />
<br />
   CFont num_font_upper;<br />
      num_font_upper.CreateFont(20 , 0, 0,0, FW_NORMAL, FALSE, FALSE, 0,<br />
         ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS | CLIP_LH_ANGLES,<br />
         PROOF_QUALITY, VARIABLE_PITCH |TMPF_TRUETYPE|FF_DONTCARE, "Arial");         <br />
<br />
   CFont *pFont = pDC->SelectObject(&num_font_upper);<br />
   pDC->TextOut(150,-130, CString("test"));<br />
   pDC->SelectObject(pFont);<br />
}<br />

GeneralHELP! Winsock problem about the select function... Pin
JoeZhang10-Jun-04 2:49
JoeZhang10-Jun-04 2:49 
GeneralRe: HELP! Winsock problem about the select function... Pin
valikac10-Jun-04 6:16
valikac10-Jun-04 6:16 
GeneralA message of sorry Pin
gamitech10-Jun-04 2:09
gamitech10-Jun-04 2:09 
GeneralUse of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 1:49
J.B.10-Jun-04 1:49 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 2:41
Johan Rosengren10-Jun-04 2:41 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 4:59
J.B.10-Jun-04 4:59 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 6:03
Johan Rosengren10-Jun-04 6:03 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
J.B.10-Jun-04 16:48
J.B.10-Jun-04 16:48 
GeneralRe: Use of ASCII seperators for Windows 98 systems Pin
Johan Rosengren10-Jun-04 19:28
Johan Rosengren10-Jun-04 19:28 
QuestionHow to use lstrcpy? Pin
Rajesh_K_Sharma10-Jun-04 1:34
Rajesh_K_Sharma10-Jun-04 1:34 
AnswerRe: How to use lstrcpy? Pin
Diddy10-Jun-04 1:37
Diddy10-Jun-04 1:37 
AnswerRe: How to use lstrcpy? Pin
jmkhael10-Jun-04 1:55
jmkhael10-Jun-04 1:55 
GeneralResize button on IE toolbar Pin
Hans Ruck10-Jun-04 1:08
Hans Ruck10-Jun-04 1:08 
GeneralMessage of Thanks Pin
Krugger40410-Jun-04 0:29
Krugger40410-Jun-04 0:29 
GeneralRe: Message of Thanks Pin
Roger Allen10-Jun-04 2:09
Roger Allen10-Jun-04 2:09 
GeneralRe: Message of Thanks Pin
David Crow10-Jun-04 2:47
David Crow10-Jun-04 2:47 
GeneralRe: Message of Thanks Pin
jmkhael10-Jun-04 3:09
jmkhael10-Jun-04 3:09 

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.