Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graphics

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i need some help with visual c++ 6.0

i want to know how to get into graphics mode and how to change the color pallette. i tried looking on the web and looking in books but none show me clearly. if you can give me the code exactly how it should be and what header files i need, i would appreciate the help so much.

you can send any help to dcp1@students.uwf.edu
 
Visual C++ isnt actually visual, you have to add Forms and dialogs and what not, there really isnt much of a Graphic mode, you can see your newly created forms, and dialogs, and what not, but majority of it is still coding, can you be a bit more specific.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)

 
Most objects that can be displayed have a method that controls color. i.e. SetBkColor( RGB(0,0,0)) etc.

Look in the MFC documentation to see how to control color for your particular class.

if you are painting into a Device Contect then you need to also draw the objects yourself pDC->Rectangle(...) etc.

hth
Randy
 
If you are talking about the good old DOS graphics modes...they don't exist...at least the Windows version of C++ doesn't support them. Beleve me, I wanted to try graphics with the Windows version of C++. If you just want DOS based graphics, stick with the DOS version of C++, it's a lot easier to play around with..I've even found some really good DOS based video drivers online. However, if you really want to get into DirectX or OpenGL, you probably need to get a really good book on it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top