home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / menu / menu.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  2KB  |  59 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993 - 1997 Microsoft Corp.
  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. // Porting macro
  13. #ifdef WIN32
  14. #define LONG2POINT(l, pt)  ((pt).x = (SHORT)LOWORD(l), (pt).y = (SHORT)HIWORD(l))
  15. #else
  16. #define LONG2POINT(l, pt)  ((pt).x = (INT)LOWORD(l), (pt).y = (INT)HIWORD(l))
  17. #endif
  18.  
  19. /* Defines for top-level menu positions */
  20. #define IDFILE_POS     0
  21. #define IDCOLORS_POS   1
  22. #define IDSTATES_POS   2
  23. #define IDHELP_POS     3
  24.  
  25. #define MEASUREITEMWIDTH  40
  26. #define MEASUREITEMHEIGHT 40
  27.  
  28. /* Dialog ID for the About.. dialog */
  29. #define ID_ABOUT 100
  30.  
  31. /* Defines for menu items */
  32. #define IDM_EXIT   202
  33. #define IDM_ABOUT  203
  34.  
  35. /* Colors menu IDs */
  36. #define IDM_COLOROWNERDR 500
  37. #define IDM_BLACK        501
  38. #define IDM_BLUE         502
  39. #define IDM_RED          503
  40. #define IDM_GREEN        504
  41.  
  42. /* Floating popup menu IDs */
  43. #define IDM_FONT         600
  44. #define IDM_SIZE         601
  45. #define IDM_STYLE        602
  46.  
  47. /* States menu IDs */
  48. #define IDM_STATE1       610
  49. #define IDM_STATE2       611
  50. #define IDM_STATE3       612
  51. #define IDM_STATE4       613
  52.  
  53. /* BitBlt Raster operation */
  54. #define ROP_PSDPxax     0x00B8074AL
  55.  
  56. BOOL NEAR PASCAL MenuInit(HANDLE);
  57. LONG APIENTRY MenuWndProc(HWND, UINT, UINT, LONG);
  58. BOOL APIENTRY About(HWND, UINT, UINT, LONG);
  59.