Click to See Complete Forum and Search --> : What do you think?


JamesSchumacher
May 18th, 2006, 06:39 PM
I am starting a C++ tutorials site, and I've started with a Win32 App tutorial. (Which will be a multi part series)

It's not finished, and I'm in a hurry, but what do you think of it so far?

http://cplusplus.50webs.com/Win32AppTutorial/index.html

Code_Nerd
May 18th, 2006, 07:20 PM
I suppose it depends what level the tutorial is aimed towards?

I know it isnt anywhere near finished, but you havent explained what the datatypes are or what a HWND is...

These are the types of things that a beginner would also be interested in knowing!

Just my 2c worth ;)

JamesSchumacher
May 21st, 2006, 06:43 PM
What do you think about this for the example source code?

I wanted to get this pretty good before finishing the tutorial. (I will comment it later)

A C++ base class Window, and a class MainWindow deriving from it. (MainWindow implements one message handler, OnNcDestroy to handle the WM_NCDESTROY message. All it does is delete the object itself and post the quit message)

Also - Paint and EraseBackground methods work different than the standard Windows WM_PAINT and WM_ERASEBKGND messages.

You will not receive either in your window process. This is due to how I implemented this. (You will always have to paint the entire window, but you paint into a mem DC every time.)