Resizer.h
上传用户:lusi_8715
上传日期:2007-01-08
资源大小:199k
文件大小:2k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /**************************************************************************************
  2.  *                                                                                    *
  3.  * This application contains code from OpenDivX and is released as a "Larger Work"    *
  4.  * under that license. Consistant with that license, this application is released     *
  5.  * under the GNU General Public License.                                              *
  6.  *                                                                                    *
  7.  * The OpenDivX license can be found at: http://www.projectmayo.com/opendivx/docs.php *
  8.  * The GPL can be found at: http://www.gnu.org/copyleft/gpl.html                      *
  9.  *                                                                                    *
  10.  * Copyright (c) 2001 - Project Mayo                                                  *
  11.  *                                                                                    *
  12.  * Authors: Damien Chavarria <adrc at projectmayo.com>                                *
  13.  *                                                                                    *
  14.  **************************************************************************************/
  15. #ifndef _RESIZER_H
  16. #define _RESIZER_H
  17. #include <windows.h>
  18. #include "Skin.h"
  19. /*
  20.  * The class used to draw
  21.  * the resize frame...
  22.  *
  23.  */
  24. class Resizer {
  25. private:
  26. POINT lastPt;
  27. POINT startPt;
  28. DWORD maintainAspect;
  29. public:
  30. Resizer();
  31. ~Resizer();
  32. void Start(POINT *pt);
  33. void Draw(HWND hwnd, POINT *pt);
  34. void Stop();
  35. };
  36. #endif