Phase 1: Migrating WinMain and WndProc Code

Phase 1 takes you through a number of necessary steps, ending with a migrated version of your application that runs successfully. You can actually stop at the end of Phase 1, but at that point your application doesn't yet take full advantage of MFC.

Phase 1 steps include:

1. Migrating the WinMain Function.

2. Migrating WndProc into a C++ class.

3. Moving your WM_PAINT code into a member function.

4. Moving your WM_COMMAND code into a member function.