home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 19 / CD_ASCQ_19_010295.iso / dos / prg / c / cwl30 / cwl3demo / cwlfunc2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-09-12  |  907 b   |  31 lines

  1. #include "cwldemo.h"
  2.  
  3. int WinBorder (POPUP_MENU_PTR p, int sel)
  4. {
  5.   WPOINTER cw;
  6.   cw = WindowInitialize(DESKTOP_WINDOW,
  7.                         BORDER,0,0,40,1,BLACKONCYAN,BLACKONCYAN,SINGLEBOX);
  8.   WindowWriteCenterString(cw,"You can use different borders ...",0);
  9.   WindowCenter(cw,VERTCENTER | HORIZCENTER);
  10.   WindowDisplay(cw,1,NOEFFECT);
  11.   delay_approx(1000);
  12.   WindowDrawBorder(cw, DOUBLEBOX);
  13.   delay_approx(1000);
  14.   WindowDrawBorder(cw, MIXEDBOX1);
  15.   delay_approx(1000);
  16.   WindowDrawBorder(cw, MIXEDBOX2);
  17.   delay_approx(1000);
  18.   WindowDrawBorder(cw, HATCHBOX1);
  19.   delay_approx(1000);
  20.   WindowDrawBorder(cw, HATCHBOX2);
  21.   delay_approx(1000);
  22.   WindowDrawBorder(cw, HATCHBOX3);
  23.   delay_approx(1000);
  24.   WindowDrawBorder(cw, SOLIDBOX1);
  25.   delay_approx(1000);
  26.   WindowDrawBorder(cw, SOLIDBOX2);
  27.   delay_approx(1000);
  28.   WindowClose(cw,NOEFFECT);
  29.   return POPUP_CONTINUE;
  30. }
  31.