home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / zoomin / zoomin.h < prev    next >
C/C++ Source or Header  |  1996-06-12  |  2KB  |  69 lines

  1. /****************************************************************************/
  2. /*                                                                          */
  3. /*                         Microsoft Confidential                           */
  4. /*                                                                          */
  5. /*                 Copyright (c) Microsoft Corp.  1987-1996                 */
  6. /*                           All Rights Reserved                            */
  7. /*                                                                          */
  8. /****************************************************************************/
  9. /****************************** Module Header *******************************
  10. * Module Name: zoomin.h
  11. *
  12. * Main header file for the ZoomIn utility.
  13. *
  14. * History:
  15. *
  16. ****************************************************************************/
  17.  
  18. #include <windows.h>
  19.  
  20.  
  21. #define MIN_ZOOM    1
  22. #define MAX_ZOOM    32
  23.  
  24. #define FASTDELTA   8
  25.  
  26. #define BOUND(x,min,max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
  27.  
  28. #define MM10PERINCH 254                     // Tenths of a millimeter per inch.
  29.  
  30. #define NPAL        256                     // Number of palette entries.
  31.  
  32.  
  33. #define MENU_HELP_ABOUT             100
  34.  
  35. #define MENU_EDIT_COPY              200
  36. #define MENU_EDIT_REFRESH           201
  37.  
  38. #define MENU_OPTIONS_REFRESHRATE    300
  39.  
  40.  
  41. #define DID_ABOUT                   1000
  42.  
  43. #define DID_REFRESHRATE             1100
  44. #define DID_REFRESHRATEENABLE       1101
  45. #define DID_REFRESHRATEINTERVAL     1102
  46.  
  47.  
  48. #define IDMENU_ZOOMIN               2000
  49.  
  50.  
  51. #define IDACCEL_ZOOMIN              3000
  52.  
  53.  
  54. #define IDTIMER_ZOOMIN              4000
  55.  
  56.  
  57. BOOL InitInstance(HINSTANCE hInst, INT cmdShow);
  58. HPALETTE CreatePhysicalPalette(VOID);
  59. LONG APIENTRY AppWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  60. VOID CalcZoomedSize(VOID);
  61. VOID DoTheZoomIn(HDC hdc);
  62. VOID MoveView(INT nDirectionCode, BOOL fFast, BOOL fPeg);
  63. VOID DrawZoomRect(VOID);
  64. VOID EnableRefresh(BOOL fEnable);
  65. VOID CopyToClipboard(VOID);
  66. BOOL APIENTRY AboutDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  67. BOOL APIENTRY RefreshRateDlgProc(HWND hwnd, UINT msg, WPARAM wParam,
  68.     LPARAM lParam);
  69.