Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalurgent:need help with TRANSPARENT toolbar Pin
tomer dror21-Mar-00 5:19
tomer dror21-Mar-00 5:19 
QuestionHow to load a bitmap from disk? Pin
Newbie20-Mar-00 21:28
Newbie20-Mar-00 21:28 
AnswerRE: How to load a bitmap from disk? Pin
Derek22-Mar-00 14:02
Derek22-Mar-00 14:02 
GeneralView handling or hiding. Pin
i_am_aamir20-Mar-00 10:19
i_am_aamir20-Mar-00 10:19 
GeneralRe: View handling or hiding. Pin
Paul Selormey10-Apr-00 1:29
Paul Selormey10-Apr-00 1:29 
Generalprinting a graphic Pin
Anonymous20-Mar-00 3:43
suss Anonymous20-Mar-00 3:43 
GeneralRE: printing a graphic Pin
Derek20-Mar-00 15:50
Derek20-Mar-00 15:50 
GeneralRe: RE: printing a graphic Pin
Mike13-Apr-00 11:35
Mike13-Apr-00 11:35 
I did exactly what you have said to do here. But, apparently some printers do not support
dc.StretchBlt (). They did before because my code worked for about a year. I don't know
what happened but it stopped working.

I am now trying as follows (with little success):

HANDLE hBitamp = ::CreateCompatibleBitmap (printerDC, width, height);
memDC.SelectObject (hBitmap);
// do some drawing into the printerDC

CBitmap it;
it.Attach (hBitmap);

unsigned char *bits = new unsigned char [640*480];

it.GetBitmapBits (640*480, bits);

::StretchDIBits (printerDC.GetSafeHdc (),.... bits,....);

And it does most of what I want. The image is flipped about the Y axis, but that's not a
problem. But, none of the line graphics appear. Any ideas?

Thanks,
Mike
Generaladd item under columns in a CListView Pin
Derek19-Mar-00 19:16
Derek19-Mar-00 19:16 
GeneralRE: add item under columns in a CListView Pin
Member 105421-Mar-00 4:50
Member 105421-Mar-00 4:50 
Generaladding items under multi columns in a CListView Pin
Derek19-Mar-00 19:13
Derek19-Mar-00 19:13 
Questionhow to change the colour of text after it been highlight Pin
Anonymous19-Mar-00 14:01
suss Anonymous19-Mar-00 14:01 
Generalpassing events from one prog to another Pin
Anonymous18-Mar-00 21:58
suss Anonymous18-Mar-00 21:58 
QuestionBuilding ActiveX Server Controls Remotely? Pin
perplexed17-Mar-00 14:43
perplexed17-Mar-00 14:43 
QuestionBuilding ActiveX Server Controls Remotely? Pin
perplexed17-Mar-00 14:29
perplexed17-Mar-00 14:29 
QuestionHow add controls to CMDIChildWnd ? /more .../ Pin
PiotrB17-Mar-00 5:25
PiotrB17-Mar-00 5:25 
GeneralWSAENOBUFS error in Windows 2000 Pin
Thales P. Carvalho16-Mar-00 5:29
Thales P. Carvalho16-Mar-00 5:29 
QuestionGIF files/images - where can I get some source code samples? Pin
Member 419516-Mar-00 4:39
Member 419516-Mar-00 4:39 
AnswerRe: GIF files/images - where can I get some source code samples? Pin
Paul Selormey10-Apr-00 1:44
Paul Selormey10-Apr-00 1:44 
GeneralBitmap in a MDI Pin
JohnDodson15-Mar-00 20:49
professionalJohnDodson15-Mar-00 20:49 
GeneralRE: Bitmap in a MDI Pin
Mike Dunn18-Mar-00 19:24
Mike Dunn18-Mar-00 19:24 
GeneralRe: Bitmap in a MDI Pin
Paul Selormey10-Apr-00 1:49
Paul Selormey10-Apr-00 1:49 
GeneralCustom Control in a DLL Pin
Russell Robinson15-Mar-00 20:30
Russell Robinson15-Mar-00 20:30 
QuestionHow can I give a 30 day working version of a program? Pin
Erich Ruth15-Mar-00 9:28
Erich Ruth15-Mar-00 9:28 
AnswerRE: How can I give a 30 day working version of a program? Pin
Alex Gorev16-Mar-00 4:25
Alex Gorev16-Mar-00 4:25 

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.