If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Hybrid View

Drawing with GDI with VC++ -> suggest me a guide or tutorial

Ok I cannot continue to bother you with my questions about how drawing into a picture box with OwnerDraw set if I really can't figure out what CDC is, what HDC stands for or why BitBlt wants a CDC pointer instead of a matrix of pixels.

So.. suggest me a good book or tutorial to learn how to draw things with CDC / HDC / BitBlt / StretchBlt things in MFC.

I am willing to learn, I'll study by myself and then try to write my own code. If and only if I am having more problems, I'll bother you again.

Re: Drawing with GDI with VC++ -> suggest me a guide or tutorial

I think the Scribble example deals with drawing using GDI, among other things.
For use of BitBlt search for an example on double buffering or "MemDC". That's a good way to learn how DC, data and what you see on the screen relate to each other.

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Re: Drawing with GDI with VC++ -> suggest me a guide or tutorial

Re: Drawing with GDI with VC++ -> suggest me a guide or tutorial

Originally Posted by pm44xl23

You are right. Any tome to suggest?

Sorry, I learned MFC in the time of Visual Studio 6. I don't know which recent books are good. Just going through some customer reviews online should give you a good idea though. And make sure the book deals with the same version of the compiler you are using.

Cheers, D Drmmr

Please put [code][/code] tags around your code to preserve indentation and make it more readable.

As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.