home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / gdi / winnt / plgblt / plgblt.h < prev    next >
Text File  |  1997-10-05  |  3KB  |  83 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1992-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. /* plgblt.h - header file for the PlgBlt() demonstration program. */
  13.  
  14.  
  15. /* function prototypes for the window procedures. */
  16. LRESULT CALLBACK MainWndProc(HWND, UINT, WPARAM, LPARAM);
  17. LRESULT CALLBACK DlgProc    (HWND, UINT, WPARAM, LPARAM);
  18. LRESULT CALLBACK About      (HWND, UINT, WPARAM, LPARAM);
  19.  
  20.  
  21. VOID DrawGrids (HDC, int, int);
  22. LPTSTR  GetStringRes (int);
  23.  
  24. /* Top dialog item IDs */
  25. #define  DID_P1X       101
  26. #define  DID_P1Y       102
  27. #define  DID_P2X       103
  28. #define  DID_P2Y       104
  29. #define  DID_P3X       105
  30. #define  DID_P3Y       106
  31. #define  DID_XSRC      110
  32. #define  DID_YSRC      111
  33. #define  DID_WIDTH     112
  34. #define  DID_HEIGHT    113
  35. #define  DID_XMASK     114
  36. #define  DID_YMASK     115
  37. #define  DID_NEWSRC    160
  38. #define  DID_NEWMASK   161
  39.  
  40. #define  DID_DRAW    200
  41.  
  42. #define IDM_COPY            300
  43. #define IDM_PASTE           301
  44. #define IDM_BOTH            302
  45. #define IDM_SPINOFF         310
  46. #define IDM_FLIPONCE        311
  47. #define IDM_SPIN5           312
  48. #define IDM_SPIN10          313
  49. #define IDM_SPIN30          314
  50. #define IDM_SPIN60          315
  51. #define IDM_SPIN90          316
  52. #define IDM_SPINTOPLEFT     317
  53. #define IDM_SPINCENTER      318
  54. #define IDM_MODE_BLACKONWHITE    320
  55. #define IDM_MODE_COLORONCOLOR    321
  56. #define IDM_MODE_WHITEONBLACK    322
  57. #define IDM_MODE_HALFTONE        323
  58. #define IDM_ABOUT           330
  59.  
  60. /* string table ids's */
  61. #define IDS_NTONLY        16
  62. #define IDS_WINDOWTITLE   17
  63. #define IDS_INVALID       18
  64. #define IDS_MONOCHROME    19
  65.  
  66.  
  67. /* Misc. defines for size, color, and appearance of drawing. */
  68. #define GRIDCOLOR  (COLORREF) 0x01000006
  69. #define DIALOGHEIGHT  90
  70. #define SEPARATORWIDTH 4
  71. #define MAXCHARS      32
  72. #define INC            5
  73.  
  74.  
  75.  
  76.  
  77. /* other user messages sent to the main window or the dialog */
  78. #define WM_PUTUPLPOINTS  WM_USER+20
  79. #define WM_PUTUPSRCRECT  WM_USER+21
  80. #define WM_PUTUPMASKPT   WM_USER+22
  81. #define WM_PLGBLT        WM_USER+23
  82. #define WM_SPIN          WM_USER+24
  83.