Guide for making a simple project in Visual C++ with MFC support

 

Created: 28-April-2003

Last Updated: 17-July-2003

by: Yasir N. Khan

 

 

 

 

 

 

 

 

Making a new Project through Wizard:

 

Make sure there is no project open. (Fileà Close Workspace)

 

In the “Workspace Pane”, you can see the classes that are generated by the wizard:

 

 

 

 

Inserting your own classes:

To insert your own class in the project,

 

 

 

 

Display a message in a Dialog Box:

 

The simplest way to display a message to the user is to call the function “AfxMessageBox(…)”. Pass a text string in the arguments that should be displayed.

 

 

Inserting Windows Message Handlers

 

Windows Message Handlers are functions that are called when user performs some action on your application. To add a Windows Message Handler: