home *** CD-ROM | disk | FTP | other *** search
- /* This program, sview.c, created by Delrina and assigned to the Layout */
- /* button, cycles the Phonebook between various layouts, as if you selected */
- /* View|[Icon][Session Details][Call Statistics]. */
-
- /* $Revision: 1.2 $ */
- /* $Date: 06 Apr 1993 17:04:44 $ */
-
- /* Define main function, which is always the starting point of C programs. */
- /* (The term "void" indicates that the function returns no value.) */
- void main ()
- {
- /* Declares a variable and initializes it to zero. */
- long ScriptHandle = 0;
- int DisplayMode;
-
- /* Establish a link between this script program and Delrina WinComm PRO */
- ScriptHandle = dcInitialize(0, 0, 0, 0);
-
- /* Exit if intialization of link with Delrina WinComm PRO failed */
- if (ScriptHandle == 0) exit();
-
- /* Check current phonebook display */
- DisplayMode = dcGetDisplay(ScriptHandle);
-
- /* Cycle through display modes */
- switch (DisplayMode)
- {
- case 1:
- DisplayMode = 2;
- break;
- case 2:
- DisplayMode = 3;
- break;
- default:
- DisplayMode = 1;
- break;
- }
-
- /* Change phonebook display */
- dcSetDisplay(ScriptHandle, DisplayMode);
-
- /* Terminate link between Delrina WinComm PRO and script program */
- dcTerminate(ScriptHandle, 0);
- }
-