Advertisement

Great got a shell Win32 API done! Now for some simple GPX

Started by May 21, 2001 12:08 AM
2 comments, last by MARS_999 23 years, 8 months ago
Ok I just finished a tutorial on the basics of a window and what is going on with it. I would like to know without using direct x can I draw some simple shapes and display different colors in the win32 api? Thanks! Windows 98/SE/ME SUCKS! Deal with it! if(windows crashes) run Linux else yea right!! RESIST WINDOWS XP!!!!!!!!!! RESIST .NET TECH!!!!!!!!!!!
Sure can!

  HWND hwnd = // get the handle to the window you''re drawing onHDC dc = GetDC( hwnd );MoveToEx( dc, 10, 10, NULL );LineTo( dc, 100, 100 ); // draw a line from (10,10) to (100,100)  


For more information and examples, check out:
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/gdi/wingdistart_9ezp.htm


War Worlds - A 3D Real-Time Strategy game in development.
Advertisement
I recommend "The Black Art of Windows Game Programming"

It covers Win32 in quite a bit of detail. You can browse the CD at my site and download whatever you want from it.

http://therabbithole.redback.inficad.com/tricks/bawgp/

The book is out of print. If someone knows where I can get an electronic text of various older programming books, I''d like to link them from my site or copy them to it if possible.

Ben
The tricks of the windows game programming gurus also has a good win32 section, and is in print.

This topic is closed to new replies.

Advertisement