1. Application startup, framework is loaded into the application
DLL,
E32DLL Method is called.
2, frame call function
NewApplication, here is generated here
An instance of the HelloWorldApplication class and returns a pointer to it. Then the frame will use this pointer to complete the construct of the program.
3, frame call
Appdlluid to get actual procedures
The UID, the role of the UID is to start the instance of this program.
4, frame call
ChelloworldApplication object
The Createdocumentl function generates an application document and returns a pointer to itself. This allows the frame to be called directly
Some features of Document. Document objects by calling their static functions
NEWL is created.
5, frame call
AppdllUid to observe whether to load a file from the file system.
6, frame calling document object
CreateAppUi method, generated one
APP UI object and return a pointer to it.
7, the frame passes the call
APP UI object
The ContructL function is completed.
8,
ContructL function first call
APP UI base class
BaseContructL function.
9,
APPUI call
APPVIEW
The newl function generates its instance, which is used herein.
10, frame call
Draw function, through
Application-> Document-> ui-> view calls. Call this call
Drawn after Draw
screen. Redraw can't pass
Draw, but to call
Drawnow () or
DrawdeferRed ().
11. When will users choose a menu item,
HandleCommandl is called by the framework, pass parameters
ACOMMAND, which indicates the command selected by the user.