Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.2 KiB

  1. /****************************************************************************/
  2. /* */
  3. /* Microsoft Confidential */
  4. /* */
  5. /* Copyright (c) Microsoft Corp. 1987-1992 */
  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. #include <windows.h>
  18. #define MIN_ZOOM 1
  19. #define MAX_ZOOM 32
  20. #define FASTDELTA 8
  21. #define BOUND(x,min,max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x)))
  22. #define MM10PERINCH 254 // Tenths of a millimeter per inch.
  23. #define NPAL 256 // Number of palette entries.
  24. #define MENU_HELP_ABOUT 100
  25. #define MENU_EDIT_COPY 200
  26. #define MENU_EDIT_REFRESH 201
  27. #define MENU_OPTIONS_REFRESHRATE 300
  28. #define MENU_OPTIONS_SHOWGRID 301
  29. #define DID_ABOUT 1000
  30. #define DID_REFRESHRATE 1100
  31. #define DID_REFRESHRATEENABLE 1101
  32. #define DID_REFRESHRATEINTERVAL 1102
  33. #define IDMENU_ZOOMIN 2000
  34. #define IDACCEL_ZOOMIN 3000
  35. #define IDTIMER_ZOOMIN 4000
  36. BOOL InitInstance(HINSTANCE hInst, INT cmdShow);
  37. HPALETTE CreatePhysicalPalette(VOID);
  38. INT_PTR APIENTRY AppWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  39. VOID CalcZoomedSize(VOID);
  40. VOID DoTheZoomIn(HDC hdc);
  41. VOID MoveView(INT nDirectionCode, BOOL fFast, BOOL fPeg);
  42. VOID DrawZoomRect(VOID);
  43. VOID EnableRefresh(BOOL fEnable);
  44. VOID CopyToClipboard(VOID);
  45. INT_PTR APIENTRY AboutDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  46. INT_PTR APIENTRY RefreshRateDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);