home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 26 / CD_ASCQ_26_1295.iso / vrac / volume_3.zip / WIN_TEST.CPP < prev    next >
C/C++ Source or Header  |  1995-10-08  |  2KB  |  132 lines

  1. #include "c:\tc\keyboard.h"
  2. #include "c:\tc\graphvga.h"
  3. #include "c:\tc\misc.h"
  4. #include "c:\tc\mouse.h"
  5. #include "c:\tc\win_it.h"
  6.  
  7.  
  8.  
  9. void main(void)
  10. {
  11.  
  12.  
  13. InitGraphics(9);
  14.  
  15. cleardevice();
  16.  
  17. Detect_Mouse();
  18.  
  19. Display_Mouse();
  20.  
  21.  
  22. DrawBox();
  23. setcolor(WHITE);
  24. line(1,1,Max_X,Max_Y);
  25. Pause(FALSE);
  26.  
  27. Windw Wind0(50,50,50,50,TRUE,TRUE);
  28. Wind0.Store_BackGround();
  29. Wind0.DrawWindows ();
  30.  
  31.  
  32. Windw Wind1(70,70,50,50,TRUE,TRUE);
  33. Wind1.Store_BackGround();
  34. Wind1.DrawWindows();
  35.  
  36.  
  37. Windw *Wind2 = new Windw(90,90,50,50,TRUE,TRUE);
  38. Wind2->Store_BackGround();
  39. Wind2->DrawWindows();
  40.  
  41.  
  42.  
  43. Windw *Wind3 = new Windw(110,110,50,50,TRUE,TRUE);
  44. Wind3->Store_BackGround();
  45. Wind3->DrawWindows();
  46.  
  47.  
  48. Windw *Wind4 = new Windw(130,130,50,50,TRUE,TRUE);
  49. Wind4->Store_BackGround();
  50. Wind4->DrawWindows();
  51.  
  52. Windw *Wind5 = new Windw(130,130,50,50,TRUE,TRUE);
  53. Wind5->Store_BackGround();
  54. Wind5->DrawWindows();
  55.  
  56. Windw *Wind6 = new Windw(150,150,50,50,TRUE,TRUE);
  57. Wind6->Store_BackGround();
  58. Wind6->DrawWindows();
  59.  
  60. Windw *Wind7 = new Windw(170,170,50,50,TRUE,TRUE);
  61. Wind7->Store_BackGround();
  62. Wind7->DrawWindows();
  63.  
  64. Windw *Wind8 = new Windw(190,190,50,50,TRUE,TRUE);
  65. Wind8->Store_BackGround();
  66. Wind8->DrawWindows();
  67.  
  68. Windw *Wind9 = new Windw(210,210,50,50,TRUE,TRUE);
  69. Wind9->Store_BackGround();
  70. Wind9->DrawWindows();
  71.  
  72. Windw *Wind10 = new Windw(230,230,50,50,TRUE,TRUE);
  73. Wind10->Store_BackGround();
  74. Wind10->DrawWindows();
  75.  
  76.  
  77.  
  78. gotoxy(1,20);
  79. Pause(TRUE);
  80. Wind10->RemoveWindows();
  81. Pause(FALSE);
  82.  
  83. Wind9->RemoveWindows();
  84. Pause(FALSE);
  85.  
  86. Wind8->RemoveWindows();
  87. Pause(FALSE);
  88.  
  89.  
  90. Wind7->RemoveWindows();
  91. Pause(FALSE);
  92.  
  93. Wind6->RemoveWindows();
  94. Pause(FALSE);
  95.  
  96. Wind5->RemoveWindows();
  97. Pause(FALSE);
  98.  
  99.  
  100. Wind4->RemoveWindows();
  101. Pause(FALSE);
  102.  
  103. Wind3->RemoveWindows();
  104. Pause(FALSE);
  105.  
  106. Wind2->RemoveWindows();
  107. Pause(FALSE);
  108.  
  109.  
  110. Wind1.RemoveWindows();
  111. Pause(FALSE);
  112.  
  113.  
  114. Wind0.RemoveWindows();
  115. Pause(TRUE);
  116.  
  117.  
  118.  
  119. closegraph();
  120. return;
  121. }
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.