Fred Raab



Your Name

Program Documentation

Date

1) Program Description

Provide a one paragraph description of the program

2) Program Operation

Detailed step-by-step instructions on how to run the program and what the user should expect to see.

3) Program Structure

At startup:

AEEClsCreateInstance is called by BREW when the program is started. It first calls the API function AEEApplet_New to create an instance of the application and establish a pointer to the event handler demo_HandleEvent. It then calls InitAppData.

InitAppData initializes the application specific data functions.

• Calls IShell_GetDeviceInfo to determine the dimensions of the screen which are stored for later use.





During normal operation:

The program is event driven and all events are processed by the event handler demo_HandleEvent as described:

EVT_APP_START:

On startup, the menu is displayed and activated.

EVT_APP_STOP:

On stop (program exit), …

EVT_APP_SUSPEND:

On suspend, …

EVT_APP_RESUME:

On resume, ….

EVT_KEY:

EVT_COMMAND:

When a menu item is selected, it is processed here. Based on the selection, the appropriate routine will be called:

DisplayName -- displays the author’s name as store in the resource file.

DisplayFavoriteColor -- displays the author’s favorite color.

Etc

DisplayName performs the following functions:







DisplayFavoriteColor performs the following functions:







Etc performs the following functions:







................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download