The framework provided by lcc-win32 centers about providing a simple interface for calling all the functions associated with a certain control. The general syntax for using this objects is:
object->Method(arguments)
This is a short hand for the normmaly used C syntax, that has ben simplified. In strict C you woould be required to write:
object->lpVtbl->Method(object,arguments);
The framework generates basically a file called <project-name>_gen.c, where it writes all dialog box procedures for your forms. The framework will generate code to handle all messages you are interested in, and also the code necessary to call your callback procedures when it detects a message that you have marked as interesting.
Usage:
The objects are created with specific creation procedures. For instance you create a new dialog box object by calling:
ST_DIALOGBOX *NewST_dialogbox(HWND);
This procedures will be called automatically by the code generated by the framework. You can suppose that when your callback is being called, the objects you receive are created already ad fully initialized and ready to use.
The overall picture then, looks like this: