home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / ZOOMIN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-05  |  2.7 KB  |  81 lines

  1. /* $Source: /home/harp/1/proto/monoBANK/winnt/zoomin.h,v $ */
  2. /* $Revision: 1.2 $ $Date: 95/02/11 14:30:51 $ $Author: mg $ */
  3. /* ----------------------------------------------------------------------------
  4.  *
  5.  * THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS PROVIDED "AS IS" WITHOUT 
  6.  * WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
  7.  * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 
  8.  * PARTICULAR PURPOSE.  The user assumes the entire risk as to the accuracy 
  9.  * and the use of this file.  This file may be used only by licensees of 
  10.  * Microsoft Corporation's WIN32 Software Development Kit in accordance with 
  11.  * the the terms of the licensee's End User License Agreement for Microsoft 
  12.  * Software for the WIN32 Software Development Kit. This file was subsequently 
  13.  * modified by Intermetrics, Inc. under license from Microsoft Corporation.
  14.  *
  15.  * Portions (c) 1985-1994 Microsoft Corporation with permission.
  16.  * Microsoft is a registered trademark and Windows and Windows NT are 
  17.  * registered trademarks of Microsoft Corporation.  
  18.  *
  19.  *---------------------------------------------------------------------------*/
  20.  
  21. /****************************** Module Header *******************************
  22. * Module Name: zoomin.h
  23. *
  24. * Main header file for the ZoomIn utility.
  25. *
  26. * History:
  27. *
  28. ****************************************************************************/
  29.  
  30. #include <windows.h>
  31.  
  32.  
  33. #define MIN_ZOOM    1
  34. #define MAX_ZOOM    32
  35.  
  36. #define FASTDELTA   8
  37.  
  38. #define BOUND(x,min,max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
  39.  
  40. #define MM10PERINCH 254                     // Tenths of a millimeter per inch.
  41.  
  42. #define NPAL        256                     // Number of palette entries.
  43.  
  44.  
  45. #define MENU_HELP_ABOUT             100
  46.  
  47. #define MENU_EDIT_COPY              200
  48. #define MENU_EDIT_REFRESH           201
  49.  
  50. #define MENU_OPTIONS_REFRESHRATE    300
  51.  
  52.  
  53. #define DID_ABOUT                   1000
  54.  
  55. #define DID_REFRESHRATE             1100
  56. #define DID_REFRESHRATEENABLE       1101
  57. #define DID_REFRESHRATEINTERVAL     1102
  58.  
  59.  
  60. #define IDMENU_ZOOMIN               2000
  61.  
  62.  
  63. #define IDACCEL_ZOOMIN              3000
  64.  
  65.  
  66. #define IDTIMER_ZOOMIN              4000
  67.  
  68.  
  69. BOOL InitInstance(HINSTANCE hInst, INT cmdShow);
  70. HPALETTE CreatePhysicalPalette(VOID);
  71. LONG APIENTRY AppWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  72. VOID CalcZoomedSize(VOID);
  73. VOID DoTheZoomIn(HDC hdc);
  74. VOID MoveView(INT nDirectionCode, BOOL fFast, BOOL fPeg);
  75. VOID DrawZoomRect(VOID);
  76. VOID EnableRefresh(BOOL fEnable);
  77. VOID CopyToClipboard(VOID);
  78. BOOL APIENTRY AboutDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  79. BOOL APIENTRY RefreshRateDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
  80.     LPARAM lParam);
  81.