Slide 7.10: Hello_a.c
  Slide 7.12: Line-by-line anatomy of Hello_a.c (cont.)
  Home


Line-by-line Anatomy of Hello_a.c


FormType *pfrm;
The FormType structure and supporting structures are defined below.
   typedef  struct {
      WindowType            window;
      UInt16                formId;
      FormAttrType          attr;
      WinHandle             bitsBehindForm;
      FormEventHandlerType  *handler;
      UInt16                focus;
      UInt16                defaultButton;
      UInt16                helpRscId;
      UInt16                menuRscId;
      UInt16                numObjects;
      FormObjListType       *objects;
   }  FormType;
Your code should treat the FormType structure as opaque. Do not attempt to change structure member values directly. FrmGotoForm( Form1 );
The function void FrmGotoForm ( UInt16 formId ) sends frmCloseEvent to the current form and frmLoadEvent and frmOpenEvent to the specified form.