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

C / C++ / MFC

 
GeneralRe: Arrays Pin
babamara5-Jan-08 23:32
babamara5-Jan-08 23:32 
GeneralRe: Arrays Pin
Maxwell Chen6-Jan-08 0:10
Maxwell Chen6-Jan-08 0:10 
QuestionRe: Arrays Pin
CPallini6-Jan-08 3:06
mveCPallini6-Jan-08 3:06 
Generalstatic pointer Pin
jupiter10005-Jan-08 11:59
jupiter10005-Jan-08 11:59 
GeneralRe: static pointer Pin
CPallini5-Jan-08 12:22
mveCPallini5-Jan-08 12:22 
GeneralRe: static pointer Pin
jupiter10005-Jan-08 12:46
jupiter10005-Jan-08 12:46 
GeneralRe: static pointer Pin
CPallini5-Jan-08 13:10
mveCPallini5-Jan-08 13:10 
GeneralProblem with mirrored bitmap Pin
AnTri5-Jan-08 9:04
AnTri5-Jan-08 9:04 
Hey, I use my printer dc to paint some text and graphic to my printer. I use MM_LOMETRIC as Mapmode because of the easy way of positioning. Now I have a big problem to print bitmaps. All bitmaps are mirrowed (around X-axis).

I use the following code to paint the bitmap:
<br />
<br />
<br />
....<br />
CBitmap *pBitmap = new CBitmap();<br />
HBITMAP hBitmap;<br />
hBitmap = (HBITMAP)::LoadImage(AfxGetInstanceHandle(),szPathToBitmap,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION);<br />
pBitmap->Attach(hBitmap);<br />
...<br />
<br />
<br />
<br />
CRect reRect;<br />
<br />
reRect.left = 10;<br />
reRect.right = 300;<br />
reRect.top = -100;<br />
reRect.bottom = -1000;<br />
<br />
CDC dcMem;<br />
BITMAP bm;<br />
<br />
pBitmap->GetBitmap(&bm);<br />
dcMem.CreateCompatibleDC(pDC);<br />
dcMem.SelectObject(pBitmap);<br />
pDC->BitBlt(reRect.left, reRect.top, bm.bmWidth, bm.bmHeight, &dcMem,0,0, SRCCOPY);<br />
<br />
<br />


What's wrong, and how could I fix it?
GeneralRe: Problem with mirrored bitmap Pin
Mark Salsbery5-Jan-08 9:50
Mark Salsbery5-Jan-08 9:50 
GeneralRe: Problem with mirrored bitmap Pin
AnTri5-Jan-08 10:24
AnTri5-Jan-08 10:24 
GeneralRe: Problem with mirrored bitmap Pin
Mark Salsbery5-Jan-08 10:30
Mark Salsbery5-Jan-08 10:30 
Questionmemory leak in the code? Pin
George_George5-Jan-08 4:02
George_George5-Jan-08 4:02 
AnswerRe: memory leak in the code? Pin
CPallini5-Jan-08 4:09
mveCPallini5-Jan-08 4:09 
GeneralRe: memory leak in the code? Pin
George_George5-Jan-08 4:16
George_George5-Jan-08 4:16 
GeneralRe: memory leak in the code? Pin
CPallini5-Jan-08 4:20
mveCPallini5-Jan-08 4:20 
GeneralRe: memory leak in the code? Pin
George_George6-Jan-08 2:45
George_George6-Jan-08 2:45 
GeneralRe: memory leak in the code? Pin
Eytukan5-Jan-08 18:39
Eytukan5-Jan-08 18:39 
GeneralRe: memory leak in the code? Pin
CPallini5-Jan-08 23:12
mveCPallini5-Jan-08 23:12 
AnswerRe: memory leak in the code? Pin
Eytukan5-Jan-08 5:25
Eytukan5-Jan-08 5:25 
AnswerRe: memory leak in the code? Pin
pierre_ribery5-Jan-08 11:53
pierre_ribery5-Jan-08 11:53 
GeneralRe: memory leak in the code? Pin
George_George6-Jan-08 2:42
George_George6-Jan-08 2:42 
GeneralRe: memory leak in the code? Pin
pierre_ribery6-Jan-08 9:58
pierre_ribery6-Jan-08 9:58 
GeneralRe: memory leak in the code? Pin
George_George6-Jan-08 20:43
George_George6-Jan-08 20:43 
AnswerRe: memory leak in the code? Pin
Hamid_RT5-Jan-08 18:04
Hamid_RT5-Jan-08 18:04 
GeneralRe: memory leak in the code? Pin
Eytukan5-Jan-08 18:36
Eytukan5-Jan-08 18:36 

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.