Important: The information in this document is obsolete and should not be used for new development.
GetMainDevice
To obtain a handle to theGDevicerecord for the main screen, use theGetMainDevicefunction.
FUNCTION GetMainDevice: GDHandle;DESCRIPTION
TheGetMainDevicefunction returns a handle to theGDevicerecord that corresponds to the main screen--that is, the one containing the menu bar.A handle to the main device is kept in the global variable
MainDevice.SPECIAL CONSIDERATIONS
TheGetMainDevicefunction may move or purge memory blocks in the application heap. Your application should not call this function at interrupt time.SEE ALSO
Listing 5-3 on page 5-9 illustrates the use of this function.