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

  1. #ifndef WINMAIN_H
  2. #define WINMAIN_H
  3. /*
  4. **-----------------------------------------------------------------------------
  5. **  File:       WinMain.h
  6. **  Purpose:    Sample Window code
  7. **  Notes:
  8. **
  9. **  Copyright (c) 1996 by Microsoft
  10. **, all rights reserved
  11. **-----------------------------------------------------------------------------
  12. */
  13.  
  14. /*
  15. **-----------------------------------------------------------------------------
  16. **  Include files
  17. **-----------------------------------------------------------------------------
  18. */
  19.  
  20. #include "Common.h"
  21.  
  22.  
  23.  
  24. /*
  25. **-----------------------------------------------------------------------------
  26. **  Defines
  27. **-----------------------------------------------------------------------------
  28. */
  29.  
  30. #define MIN_WIN_SIZE_X    128
  31. #define MIN_WIN_SIZE_Y  128
  32. #define DEF_WIN_SIZE_X    256
  33. #define DEF_WIN_SIZE_Y  256
  34.  
  35.  
  36.  
  37. /*
  38. **-----------------------------------------------------------------------------
  39. **  Global Variables
  40. **-----------------------------------------------------------------------------
  41. */
  42.  
  43. extern HINSTANCE    g_hMainInstance;
  44. extern HWND         g_hMainWindow;
  45. extern HACCEL       g_hMainAccel;
  46.  
  47. extern LPCTSTR      g_szMainName;
  48. extern LPCTSTR      g_szMainClass;
  49. extern LPCTSTR      g_szMainTitle;
  50. extern LPCTSTR      g_szPaused;
  51.  
  52. extern INT          g_nExitCode;
  53.  
  54.  
  55.  
  56. /*
  57. **-----------------------------------------------------------------------------
  58. **  Function Prototypes
  59. **-----------------------------------------------------------------------------
  60. */
  61.  
  62. // Windows routines
  63. BOOL InitMain (void);
  64. void FiniMain (void);
  65.  
  66. void RunMain (void);
  67. INT  WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
  68.                      LPSTR lpCmdLine, INT nShowCmd);
  69. BOOL InitMainWindow (void);
  70.  
  71.  
  72. /*
  73. **-----------------------------------------------------------------------------
  74. **  End of File
  75. **-----------------------------------------------------------------------------
  76. */
  77. #endif // End WINMAIN_H
  78.  
  79.  
  80.