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

  1. /**************************************************************************
  2.  *
  3.  *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4.  *  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5.  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6.  *  PURPOSE.
  7.  *
  8.  *  Copyright (C) 1993 - 1997  Microsoft Corporation.  All Rights Reserved.
  9.  * 
  10.  **************************************************************************/
  11.  
  12. /* reverse.h - Header file for REVERSE sample application.
  13.  *
  14.  
  15.  */
  16.  
  17.  
  18. /*
  19.  *  Constants
  20.  */
  21. #define LOADSTRBUFSIZE 256 // 255 + nul is biggest stringtable string.
  22.  
  23. #ifndef GET_WM_COMMAND_ID    // not in WIN16 windowsx.h
  24. #define GET_WM_COMMAND_ID(wp, lp)               LOWORD(wp)
  25. #endif
  26.  
  27. // Child window identifiers
  28. #define IDE_NAME        200
  29. #define IDB_PLAY        201
  30. #define IDB_QUIT        202
  31.  
  32. // Window Position and size definitions
  33. #define WMAIN_DX        207
  34. #define WMAIN_DY        120
  35. #define NAME_DX         180
  36. #define NAME_DY         30
  37. #define NAME_X          10
  38. #define NAME_Y          10
  39. #define PLAY_DX         85
  40. #define PLAY_DY         35
  41. #define PLAY_X          10
  42. #define PLAY_Y          50
  43. #define QUIT_DX         85
  44. #define QUIT_DY         35
  45. #define QUIT_X          105
  46. #define QUIT_Y          50
  47.  
  48. #define IDM_ABOUT           0x101
  49.  
  50. /*
  51.  *  Function prototypes
  52.  */
  53. BOOL FAR PASCAL AppAbout(HWND, UINT ,WPARAM, LPARAM);
  54. LONG FAR PASCAL WndProc(HWND, UINT ,WPARAM, LPARAM);
  55. void Interchange(HPSTR, HPSTR, WORD);
  56. void ReversePlay(void); 
  57. VOID cleanup(void);
  58.  
  59. LPTSTR GetStringRes(int id);
  60.  
  61. // message cracker things
  62. #define MyDefProc    DefWindowProc
  63. void ReverseOnCommand(HWND hwnd, int id, HWND hwndCtl, UINT codeNotify);
  64. void ReverseOnDestroy(HWND hwnd);
  65. void ReverseOnSysCommand(HWND hwnd, UINT cmd, int x, int y);
  66.