home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / commands / pdragselect.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-15  |  921 b   |  36 lines

  1. /*
  2.  *--- PDragSelect.h -------------------------------------------------------
  3.  * Copyright (c) 1996 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, July 19, 1996 @ 11:31 PM by Paul Ferguson.
  5.  *
  6.  * Description: This implements a drag select command.
  7.  *-------------------------------------------------------------------------
  8.  */
  9.  
  10. #include "PCommand.h"
  11. #include "PRequestBuf.h"
  12. #include "PDragSelect.h"
  13.  
  14.  
  15. PDragSelect::PDragSelect(long xLeft, long yTop, long xRight, long yBottom)
  16. {
  17.     long x[4];
  18.     x[0] = xLeft;
  19.     x[1] = yTop;
  20.     x[2] = xRight;
  21.     x[3] = yBottom;
  22.     PCommand command(pm_dragselect, x, 4 * sizeof(long));
  23. }
  24.  
  25. PDragSelectExtend::PDragSelectExtend(long xLeft, long yTop, long xRight, long yBottom)
  26. {
  27.     long x[4];
  28.     x[0] = xLeft;
  29.     x[1] = yTop;
  30.     x[2] = xRight;
  31.     x[3] = yBottom;
  32.     PCommand command(pm_dragselectextend, x, 4 * sizeof(long));
  33. }
  34.  
  35. // end of PDragSelect.h
  36.