|
|
1.1 ! root 1: /**************************************************************************** ! 2: * * ! 3: * FILE : Menu.h * ! 4: * * ! 5: * DESCRIPTION : Header file for the Menu Example application. * ! 6: * * ! 7: ****************************************************************************/ ! 8: // Porting macro ! 9: #ifdef WIN32 ! 10: #define LONG2POINT(l, pt) ((pt).x = (SHORT)LOWORD(l), (pt).y = (SHORT)HIWORD(l)) ! 11: #else ! 12: #define LONG2POINT(l, pt) ((pt).x = (INT)LOWORD(l), (pt).y = (INT)HIWORD(l)) ! 13: #endif ! 14: ! 15: /* Defines for top-level menu positions */ ! 16: #define IDFILE_POS 0 ! 17: #define IDCOLORS_POS 1 ! 18: #define IDSTATES_POS 2 ! 19: #define IDHELP_POS 3 ! 20: ! 21: #define MEASUREITEMWIDTH 40 ! 22: #define MEASUREITEMHEIGHT 40 ! 23: ! 24: /* Dialog ID for the About.. dialog */ ! 25: #define ID_ABOUT 100 ! 26: ! 27: /* Defines for menu items */ ! 28: #define IDM_EXIT 202 ! 29: #define IDM_ABOUT 203 ! 30: ! 31: /* Colors menu IDs */ ! 32: #define IDM_COLOROWNERDR 500 ! 33: #define IDM_BLACK 501 ! 34: #define IDM_BLUE 502 ! 35: #define IDM_RED 503 ! 36: #define IDM_GREEN 504 ! 37: ! 38: /* Floating popup menu IDs */ ! 39: #define IDM_FONT 600 ! 40: #define IDM_SIZE 601 ! 41: #define IDM_STYLE 602 ! 42: ! 43: /* States menu IDs */ ! 44: #define IDM_STATE1 610 ! 45: #define IDM_STATE2 611 ! 46: #define IDM_STATE3 612 ! 47: #define IDM_STATE4 613 ! 48: ! 49: /* BitBlt Raster operation */ ! 50: #define ROP_PSDPxax 0x00B8074AL ! 51: ! 52: BOOL NEAR PASCAL MenuInit(HANDLE); ! 53: LONG APIENTRY MenuWndProc(HWND, UINT, UINT, LONG); ! 54: BOOL APIENTRY About(HWND, UINT, UINT, LONG);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.