Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Microsoft Visual C++ graphics library

1 view
Skip to first unread message

Shawn Ligocki

unread,
Oct 7, 2000, 3:00:00 AM10/7/00
to
please contact me if you have an answer or somewhere i should go to find
an answer, thank you.

Could anybody tell me where I can find a simple c++ graphics library for
microsoft visual C++? I just want a simple graphics library that will
let me open a graphics window, close it and draw pixles in that window.
Thank you very much for your time.

-Shawn Ligocki


Clark

unread,
Oct 9, 2000, 3:00:00 AM10/9/00
to

The Microsoft Foundation Class "CDC" makes that fairly easy, I think.
Simply build a basic MFC application and utilize the pDC pointer in the View
class's OnDraw method. For example,

void CGraphTestView::OnDraw(CDC* pDC)
{
pDC->SetMapMode(MM_TEXT);
pDC->SetPixel(10,10,0x00FF00);
pDC->SetPixel(50,50,0xFF0000);
pDC->SetPixel(100,100,0x0000FF);
}

Draws a green, red, and blue pixel

"Shawn Ligocki" <slig...@home.com> wrote in message
news:39DF72F7...@home.com...

0 new messages